mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-12 00:04:35 +02:00
truc de soutien pas finie + bugé
This commit is contained in:
@@ -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 = {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user