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:
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user