few changes
This commit is contained in:
parent
aa93570535
commit
c757c686ac
|
@ -0,0 +1,8 @@
|
||||||
|
# igna's gitignore for python bots
|
||||||
|
.env
|
||||||
|
spec/
|
||||||
|
dist/
|
||||||
|
config.json
|
||||||
|
a.py
|
||||||
|
Procfile.windows
|
||||||
|
# procfile.windows is due to most-likely brken on few things
|
|
@ -0,0 +1 @@
|
||||||
|
nextcord
|
|
@ -0,0 +1,2 @@
|
||||||
|
TOKEN=DiscordBotToken
|
||||||
|
PREFIX=DiscordBotPrefix
|
|
@ -0,0 +1,19 @@
|
||||||
|
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)
|
Loading…
Reference in New Issue