Pārlūkot izejas kodu

avoiding possible bug I dont know the cause of but returns a value error from pony.

tags/v2.2.0
Roxie Gibson pirms 5 gadiem
vecāks
revīzija
eb4a84884b
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. +7
    -4
      roxbot/cogs/customcommands.py

+ 7
- 4
roxbot/cogs/customcommands.py Parādīt failu

@@ -138,10 +138,13 @@ class CustomCommands:
except AttributeError:
pass
else:
command = CCCommands.get(name=msg, guild_id=message.guild.id, type=0)
if command:
output = self._get_output(command.output)
return await channel.send(output)
try:
command = CCCommands.get(name=msg, guild_id=message.guild.id, type=0)
if command:
output = self._get_output(command.output)
return await channel.send(output)
except:
pass

@commands.guild_only()
@commands.group(aliases=["cc"])

Notiek ielāde…
Atcelt
Saglabāt