mirror of
https://github.com/uhIgnacio/heroku-example.git
synced 2024-08-14 22:47:00 +00:00
fix: actually works on heroku, and few stuff
This commit is contained in:
parent
ddc936a891
commit
4e7572053d
4 changed files with 7 additions and 11 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,6 +3,4 @@
|
|||
spec/
|
||||
dist/
|
||||
config.json
|
||||
a.py
|
||||
Procfile.windows
|
||||
# procfile.windows is due to most-likely brken on few things
|
||||
.env.example
|
2
.replit
Normal file
2
.replit
Normal file
|
@ -0,0 +1,2 @@
|
|||
language = "python3"
|
||||
run = "python3 src/main.py"
|
|
@ -1,2 +0,0 @@
|
|||
TOKEN=DiscordBotToken
|
||||
PREFIX=DiscordBotPrefix
|
|
@ -1,11 +1,8 @@
|
|||
import os
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
TOKEN = os.getenv('TOKEN')
|
||||
PREFIX = os.getenv('PREFIX')
|
||||
PREFIX = os.environ['PREFIX']
|
||||
intents = nextcord.Intents.default()
|
||||
intents.members = True
|
||||
|
||||
|
@ -21,4 +18,5 @@ async def on_ready():
|
|||
async def ping(ctx):
|
||||
await ctx.reply('Pong!')
|
||||
|
||||
bot.run(TOKEN)
|
||||
|
||||
bot.run(os.environ['TOKEN'])
|
||||
|
|
Loading…
Reference in a new issue