From d1b94ca904d890a5fd5a0cbaff8b6adaef4ebe63 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 14 Nov 2017 20:58:19 +0000 Subject: [PATCH] Command to activate even if titan is nicknamed --- discordbot/titanembeds/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index ae1ac8b..d3e2458 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -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...