ban commands added
This commit is contained in:
1 parent
a578c143e7
commit
1283569622
4 files changed
+123
-124
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user