mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Merge branch 'main' into dev
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,3 +1,5 @@
|
||||
When redistributing this code, add your copyrihght notice below all the other ones
|
||||
Copyright (c) 2022 Jérémie Cotti
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user