diff --git a/clear_commands.py b/clear_commands.py index 4b0d2d2..ea9ddd6 100644 --- a/clear_commands.py +++ b/clear_commands.py @@ -1,22 +1,27 @@ import discord +import asyncio +import time +import datetime +import random import os from os import system from os import environ from discord.ext import commands +from discord.commands import Option +from discord.commands import permissions +from discord.ui import InputText, Modal -intents = discord.Intents( - guilds=True, - members=True, - messages=True, -) +intents = discord.Intents.default() +intents.members = True +intents.message_content = True token = os.environ['TOKEN'] prefix = os.environ['PREFIX'] bot = commands.Bot(intents=intents, command_prefix=prefix) -client = discord.Client() @bot.event -async def on_ready(): +async def on_connect(): print("Bot ready on Version %s..." % discord.__version__) + await bot.sync_commands(unregister_guilds=[261575556708040705]) bot.run(token) \ No newline at end of file