20 lines
374 B
Python
20 lines
374 B
Python
|
import os
|
||
|
from nextcord.ext import commands
|
||
|
|
||
|
TOKEN = os.environ['TOKEN']
|
||
|
PREFIX = os.environ['PREFIX']
|
||
|
intents = nextcord.Intents.default()
|
||
|
intents.members = True
|
||
|
|
||
|
bot = commands.Bot(command_prefix='$', intents=intents)
|
||
|
|
||
|
@bot.event()
|
||
|
async def on_ready():
|
||
|
print(f'{bot.user} is online!')
|
||
|
|
||
|
@bot.command()
|
||
|
async def ping(ctx):
|
||
|
await ctx.reply('Pong!')
|
||
|
|
||
|
bot.run(token)
|