shbot/clear_commands.py
2022-05-19 02:29:09 +02:00

31 lines
No EOL
785 B
Python

import discord
import asyncio
import time
import datetime
import random
import os
import sys
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.default()
intents.members = True
intents.message_content = True
token = os.environ['TOKEN']
prefix = os.environ['PREFIX']
bot = commands.Bot(intents=intents, command_prefix=prefix)
@bot.event
async def on_connect():
print("Bot ready on Version %s..." % discord.__version__)
await bot.sync_commands(commands=[], guild_ids=[261575556708040705])
await bot.register_commands(commands=[], guild_id=261575556708040705)
await bot.close()
os._exit(0)
bot.run(token)