1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-08 07:30:20 +02:00

better joke system

This commit is contained in:
ddorn
2020-05-04 16:16:06 +02:00
parent c13aa6bec3
commit 7dd6ed2273
6 changed files with 117 additions and 29 deletions

View File

@ -47,6 +47,9 @@ class DevCog(Cog, name="Dev tools"):
# Utility functions
def send(msg, channel=None):
if isinstance(channel, int):
channel = get(ctx.guild.channels, id=channel)
channel = channel or ctx.channel
asyncio.create_task(channel.send(msg))