experiment - slash commands

This commit is contained in:
esef committed 2026-06-29 15:54:52 +03:00
1 parent f05a4bbe5a
commit a578c143e7
3 files changed
+123 -52

No files matched your search

+6
View File
@@ -40,6 +40,12 @@ async def on_ready():
print(f'✅ {bot.user} is online!')
asyncio.create_task(forwarder.start())
asyncio.create_task(twitter.start())
try:
synced = await bot.tree.sync()
print(f'✅ synced {len(synced)} slash command(s)')
except Exception as e:
print(f'slash command sync failed: {e}')
async def main():
async with bot: