Merge branch 'main' into dev

This commit is contained in:
Paillat
2022-12-12 12:58:45 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ class Chat (discord.Cog) :
loop = asyncio.get_event_loop()
thread = threading.Thread(target=asyncio.run_coroutine_threadsafe, args=(on_message_process(message, self), loop))
thread.start()
@discord.slash_command(name="say", description="Say a message")
async def say(self, ctx: discord.ApplicationContext, message: str):
debug(f"The user {ctx.author.display_name} ran the say command command in the channel {ctx.channel} of the guild {ctx.guild}, named {ctx.guild.name}")