add empty bot to clear commands.
This commit is contained in:
parent
759af6b98b
commit
0b2dfca4dd
1 changed files with 22 additions and 0 deletions
22
clear_commands.py
Normal file
22
clear_commands.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
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)
|
Loading…
Reference in a new issue