2021-08-31 05:50:30 +00:00
|
|
|
import os
|
2021-08-29 17:55:45 +00:00
|
|
|
import nextcord
|
2021-08-29 17:45:55 +00:00
|
|
|
from nextcord.ext import commands
|
|
|
|
|
2021-09-28 09:32:52 +00:00
|
|
|
PREFIX = os.environ['PREFIX']
|
|
|
|
intents = nextcord.Intents.default()
|
2021-08-29 17:45:55 +00:00
|
|
|
intents.members = True
|
|
|
|
|
2021-08-29 17:55:45 +00:00
|
|
|
bot = commands.Bot(command_prefix=PREFIX, intents=intents)
|
2021-08-29 17:45:55 +00:00
|
|
|
|
2021-08-31 05:50:30 +00:00
|
|
|
|
|
|
|
@bot.event
|
2021-08-29 17:45:55 +00:00
|
|
|
async def on_ready():
|
|
|
|
print(f'{bot.user} is online!')
|
|
|
|
|
2021-08-31 05:50:30 +00:00
|
|
|
|
2021-08-29 17:45:55 +00:00
|
|
|
@bot.command()
|
|
|
|
async def ping(ctx):
|
|
|
|
await ctx.reply('Pong!')
|
|
|
|
|
2021-09-28 09:32:52 +00:00
|
|
|
|
|
|
|
bot.run(os.environ['TOKEN'])
|