diff --git a/src/main.lua b/src/main.lua index 6801b7c..45118c1 100644 --- a/src/main.lua +++ b/src/main.lua @@ -266,24 +266,20 @@ client:on('messageCreate', function(message) local cmdName=args[1] table.remove(args,1) local command=commands.command_list[cmdName] - if not _G.locked then - if command~=nil then - if message.guild~=nil then - local s,e=pcall(function() - command.exec({message=message,args=args,mentions=mentions,t={client,discordia,token}}) - end) - if not s then - message:reply('tripped : '..e:split('/')[#e:split('/')]) - end - else - message:reply('i will not let you type in dms!!! 😠') + if command~=nil then + if message.guild~=nil then + local s,e=pcall(function() + command.exec({message=message,args=args,mentions=mentions,t={client,discordia,token}}) + end) + if not s then + message:reply('tripped : '..e:split('/')[#e:split('/')]) end else - message:reply('command does not exist 👎') + message:reply('i will not let you type in dms!!! 😠') end - else --_G.current = {name=user.name,game=API.GAMES[game],style=API.STYLES[style]:lower()} - message:reply('Bot is currently in use, please try again later ('.._G.current.name..' for '.._G.current.game..' in '.._G.current.style..')') - end + else + message:reply('command does not exist 👎') + end end end) diff --git a/src/modules/commands/rank.lua b/src/modules/commands/rank.lua index 895bed3..b3c1eef 100644 --- a/src/modules/commands/rank.lua +++ b/src/modules/commands/rank.lua @@ -29,6 +29,7 @@ commands:Add('rank',{},'rank