shbot/clear_commands.py

22 lines
440 B
Python
Raw Normal View History

2022-02-01 11:34:51 +01:00
import discord
import os
from os import system
from os import environ
from discord.ext import commands
intents = discord.Intents(
guilds=True,
members=True,
messages=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():
print("Bot ready on Version %s..." % discord.__version__)
bot.run(token)