few changes

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

1
.env
View file

@ -1 +0,0 @@
TOKEN=

8
.gitignore vendored Normal file
View file

@ -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

View file

@ -0,0 +1 @@
nextcord

2
src/.env.example Normal file
View file

@ -0,0 +1,2 @@
TOKEN=DiscordBotToken
PREFIX=DiscordBotPrefix

19
src/main.py Normal file
View file

@ -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)