fix clear_commands
This commit is contained in:
parent
e1e136f086
commit
caa690607c
1 changed files with 12 additions and 7 deletions
|
@ -1,22 +1,27 @@
|
||||||
import discord
|
import discord
|
||||||
|
import asyncio
|
||||||
|
import time
|
||||||
|
import datetime
|
||||||
|
import random
|
||||||
import os
|
import os
|
||||||
from os import system
|
from os import system
|
||||||
from os import environ
|
from os import environ
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
from discord.commands import Option
|
||||||
|
from discord.commands import permissions
|
||||||
|
from discord.ui import InputText, Modal
|
||||||
|
|
||||||
intents = discord.Intents(
|
intents = discord.Intents.default()
|
||||||
guilds=True,
|
intents.members = True
|
||||||
members=True,
|
intents.message_content = True
|
||||||
messages=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
token = os.environ['TOKEN']
|
token = os.environ['TOKEN']
|
||||||
prefix = os.environ['PREFIX']
|
prefix = os.environ['PREFIX']
|
||||||
bot = commands.Bot(intents=intents, command_prefix=prefix)
|
bot = commands.Bot(intents=intents, command_prefix=prefix)
|
||||||
client = discord.Client()
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_connect():
|
||||||
print("Bot ready on Version %s..." % discord.__version__)
|
print("Bot ready on Version %s..." % discord.__version__)
|
||||||
|
await bot.sync_commands(unregister_guilds=[261575556708040705])
|
||||||
|
|
||||||
bot.run(token)
|
bot.run(token)
|
Loading…
Add table
Reference in a new issue