mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Command to activate even if titan is nicknamed
This commit is contained in:
parent
b1186fecfe
commit
d1b94ca904
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user