mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 12:48:54 -05:00
Another small fix to CCs x2
This commit is contained in:
parent
db453b9804
commit
b959065667
@ -111,7 +111,7 @@ class CustomCommands:
|
|||||||
if not user_allowed(message):
|
if not user_allowed(message):
|
||||||
return
|
return
|
||||||
|
|
||||||
msg = message.content.lower()
|
msg = message.content
|
||||||
server = message.server
|
server = message.server
|
||||||
prefix = self.get_prefix(msg)
|
prefix = self.get_prefix(msg)
|
||||||
|
|
||||||
@ -120,6 +120,8 @@ class CustomCommands:
|
|||||||
cmd = msg[len(prefix):]
|
cmd = msg[len(prefix):]
|
||||||
if cmd in cmdlist.keys():
|
if cmd in cmdlist.keys():
|
||||||
await self.bot.send_message(message.channel, cmdlist[cmd])
|
await self.bot.send_message(message.channel, cmdlist[cmd])
|
||||||
|
elif cmd.lower() in cmdlist.keys():
|
||||||
|
await self.bot.send_message(message.channel, cmdlist[cmd.lower()])
|
||||||
|
|
||||||
def get_prefix(self, msg):
|
def get_prefix(self, msg):
|
||||||
for p in self.bot.command_prefix:
|
for p in self.bot.command_prefix:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user