From 4c41a314186bdeece2efb4c579739544eb134422 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 21 May 2018 22:35:08 +0000 Subject: [PATCH] Remove init as a command because its not supposed to be one --- discordbot/titanembeds/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index f333dd4..25818ee 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -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