add steal in economi

This commit is contained in:
Arthur Puechberty
2026-01-17 19:08:52 +01:00
parent 7d706b4d79
commit 90339f9323
10 changed files with 643 additions and 65 deletions
+2 -2
View File
@@ -29,11 +29,11 @@ module.exports = addCommand({
guildCondition: async (guildId) => {
return new Promise((resolve) => {
db.get(
"SELECT enabled FROM economy_config WHERE guild_id = ?",
"SELECT enabled, work_enabled FROM economy_config WHERE guild_id = ?",
[guildId],
(err, row) => {
if (err) return resolve(false);
resolve(!!row?.enabled);
resolve(!!row?.enabled && !!row?.work_enabled);
}
);
});