Remove init as a command because its not supposed to be one

This commit is contained in:
Jeremy Zhang 2018-05-21 22:35:08 +00:00
parent 528e8584c0
commit 4c41a31418

View File

@ -87,6 +87,8 @@ class Titan(discord.AutoShardedClient):
if len(message.content.split()) > 1 and message.guild: #making sure there is actually stuff in the message and have arguments and check if it is sent in server (not PM)
if msg_arr[0] == "<@{}>".format(self.user.id) or msg_arr[0] == "<@!{}>".format(self.user.id): #make sure it is mention
msg_cmd = msg_arr[1].lower() # get command
if msg_cmd == "__init__":
return
cmd = getattr(self.command, msg_cmd, None) #check if cmd exist, if not its none
if cmd: # if cmd is not none...
async with message.channel.typing(): #this looks nice