test
This commit is contained in:
parent
53d64beb36
commit
f9a156818e
5
index.js
5
index.js
@ -12,7 +12,7 @@ const token = args[2].toString();
|
||||
const pterodactyl = args[3].toString();
|
||||
const palworldToken = args[4].toString();
|
||||
const deeplToken = args[5] ? args[5].toString() : null; // Ajoutez le token DeepL comme 5ème argument
|
||||
|
||||
console.log("deeplToken : "+deeplToken);
|
||||
const headers = {
|
||||
"Accept": "application/json",
|
||||
"Content-Type": "application/json",
|
||||
@ -94,9 +94,8 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
|
||||
if (reaction.message.partial) {
|
||||
await reaction.message.fetch();
|
||||
}
|
||||
|
||||
const message = reaction.message;
|
||||
|
||||
console.log(message);
|
||||
// Vérifier qu'il y a du contenu à traduire
|
||||
if (!message.content || message.content.trim() === '') {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user