Command to activate even if titan is nicknamed

This commit is contained in:
Jeremy Zhang 2017-11-14 20:58:19 +00:00
parent b1186fecfe
commit d1b94ca904

View File

@ -98,7 +98,7 @@ class Titan(discord.Client):
msg_arr = message.content.split() # split the message
if len(message.content.split()) > 1 and message.server: #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): #make sure it is mention
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
cmd = getattr(self.command, msg_cmd, None) #check if cmd exist, if not its none
if cmd: # if cmd is not none...