fix: actually works on heroku, and few stuff

This commit is contained in:
igna 2021-09-28 09:32:52 +00:00
parent ddc936a891
commit 4e7572053d
4 changed files with 7 additions and 11 deletions

4
.gitignore vendored
View file

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

@ -0,0 +1,2 @@
language = "python3"
run = "python3 src/main.py"

View file

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

View file

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