Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -485,7 +485,6 @@ client.on('messageCreate', async (message) => {
|
|
| 485 |
return;
|
| 486 |
}
|
| 487 |
|
| 488 |
-
const config = storage.data.config[message.guildId] || {};
|
| 489 |
const botEnabled = config.botEnabled !== false; // Default to true if not set
|
| 490 |
|
| 491 |
if (!botEnabled && commandName !== 'on') {
|
|
|
|
| 485 |
return;
|
| 486 |
}
|
| 487 |
|
|
|
|
| 488 |
const botEnabled = config.botEnabled !== false; // Default to true if not set
|
| 489 |
|
| 490 |
if (!botEnabled && commandName !== 'on') {
|