Migration vers Disnake et ajout des components V2
This commit is contained in:
parent
c8c579eefe
commit
98f7501e07
47 changed files with 1196 additions and 722 deletions
19
backups/scratch/check_disnake.py
Normal file
19
backups/scratch/check_disnake.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import disnake
|
||||
import disnake.ext.commands as commands
|
||||
import asyncio
|
||||
|
||||
print(f"Disnake version: {disnake.__version__}")
|
||||
bot = commands.Bot(command_prefix="!")
|
||||
print(f"Bot has setup_hook: {hasattr(bot, 'setup_hook')}")
|
||||
|
||||
async def test():
|
||||
print("Testing setup_hook call...")
|
||||
class TestBot(commands.Bot):
|
||||
async def setup_hook(self):
|
||||
print("setup_hook CALLED!")
|
||||
|
||||
tbot = TestBot(command_prefix="!")
|
||||
# We won't start it because we don't have a token here,
|
||||
# but we can check if the library expects it.
|
||||
|
||||
asyncio.run(test())
|
||||
Loading…
Add table
Add a link
Reference in a new issue