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:
4
LICENSE
4
LICENSE
@@ -1,4 +1,6 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
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
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class Chat (discord.Cog) :
|
|||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
thread = threading.Thread(target=asyncio.run_coroutine_threadsafe, args=(on_message_process(message, self), loop))
|
thread = threading.Thread(target=asyncio.run_coroutine_threadsafe, args=(on_message_process(message, self), loop))
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
@discord.slash_command(name="say", description="Say a message")
|
@discord.slash_command(name="say", description="Say a message")
|
||||||
async def say(self, ctx: discord.ApplicationContext, message: str):
|
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}")
|
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