ban commands added

This commit is contained in:
esef committed 2026-06-29 16:20:57 +03:00
1 parent a578c143e7
commit 1283569622
4 files changed
+123 -124

No files matched your search

+1 -6
View File
@@ -14,6 +14,7 @@ load_dotenv('credentials.env')
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents, help_command=None)
@@ -40,12 +41,6 @@ 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: