This commit is contained in:
igna 2021-08-29 17:55:45 +00:00
parent c757c686ac
commit 9477880915
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import os import os
import nextcord
from nextcord.ext import commands from nextcord.ext import commands
TOKEN = os.environ['TOKEN'] TOKEN = os.environ['TOKEN']
@ -6,7 +7,7 @@ PREFIX = os.environ['PREFIX']
intents = nextcord.Intents.default() intents = nextcord.Intents.default()
intents.members = True intents.members = True
bot = commands.Bot(command_prefix='$', intents=intents) bot = commands.Bot(command_prefix=PREFIX, intents=intents)
@bot.event() @bot.event()
async def on_ready(): async def on_ready():
@ -16,4 +17,4 @@ async def on_ready():
async def ping(ctx): async def ping(ctx):
await ctx.reply('Pong!') await ctx.reply('Pong!')
bot.run(token) bot.run(TOKEN)