mirror of
https://github.com/uhIgnacio/heroku-example.git
synced 2024-08-14 22:47:00 +00:00
few changes
This commit is contained in:
parent
aa93570535
commit
c757c686ac
5 changed files with 30 additions and 1 deletions
1
.env
1
.env
|
@ -1 +0,0 @@
|
|||
TOKEN=
|
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal 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
|
|
@ -0,0 +1 @@
|
|||
nextcord
|
2
src/.env.example
Normal file
2
src/.env.example
Normal file
|
@ -0,0 +1,2 @@
|
|||
TOKEN=DiscordBotToken
|
||||
PREFIX=DiscordBotPrefix
|
19
src/main.py
Normal file
19
src/main.py
Normal 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)
|
Loading…
Reference in a new issue