truc de soutien pas finie + bugé

This commit is contained in:
VALOU3336
2024-04-22 23:37:34 +02:00
parent 415f55638b
commit a9c8732f1f
3 changed files with 275 additions and 14 deletions
+3 -1
View File
@@ -4,7 +4,6 @@ const db = new sqlite3.Database('myDatabase.db');
module.exports = {
name: Events.PresenceUpdate,
async execute(oldPresence, newPresence) {
db.get(`SELECT * FROM soutiens WHERE guildID = ?`, [newPresence.guild.id], (err, row) => {
if (err) {
@@ -12,6 +11,8 @@ module.exports = {
return;
}
if (row) {
const status = row.status;
if (status === 'on'){
const roleSoutien = row.roleID;
const messageSoutien = row.message;
@@ -27,6 +28,7 @@ module.exports = {
}
}
}
}
});
}
};