mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Command to activate even if titan is nicknamed
This commit is contained in:
		@@ -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...
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user