diff options
| author | ame <[email protected]> | 2023-09-27 16:39:38 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2023-09-27 16:39:38 -0500 |
| commit | 8064e8a3175785425bbb6e5be40adb1000215b74 (patch) | |
| tree | 66fa84c0e3f4ba183f5f665780ecda5b1c6d162a /events/message.js | |
| parent | b4d9e683a2d40f6d76629323d35523871d3337e5 (diff) | |
fix restrict(ed) channels
Diffstat (limited to 'events/message.js')
| -rw-r--r-- | events/message.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/events/message.js b/events/message.js index 817a592..59e79ef 100644 --- a/events/message.js +++ b/events/message.js @@ -76,8 +76,8 @@ module.exports = { com_string.shift() com_string = parse_inp(com_string.join(" ")) try{ - if(((!com.config.restrict||com.config.restrict.includes(message.channel))&& - (!com.config.restricted||!com.config.restricted.includes(message.channel)))||mod) + if(((!com.config.restrict||com.config.restrict.length==0||com.config.restrict.includes(message.channel))&& + (!com.config.restricted||com.config.restricted.length==0||!com.config.restricted.includes(message.channel)))||mod) if(mod||com.config.cooldown==null||com.last_command[uid]==null||(date.getTime()-com.last_command[uid].getTime())/1000>com.config.cooldown){ await com.main(client,Discord,message,com_string,com_call) com.last_command[uid] = new Date() |
