heroku-example/src/main.py

20 lines
374 B
Python
Raw Normal View History

2021-08-29 17:45:55 +00:00
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)