Compare commits

...

2 Commits

Author SHA1 Message Date
igna 3a37b439da remove useless requirement 2021-09-28 09:33:31 +00:00
igna 4e7572053d fix: actually works on heroku, and few stuff 2021-09-28 09:32:52 +00:00
5 changed files with 9 additions and 12 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 +1 @@
nextcord
python-dotenv

View File

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

View File

@ -1,12 +1,9 @@
import os
import nextcord
from nextcord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('TOKEN')
PREFIX = os.getenv('PREFIX')
intents = nextcord.Intents.default()
PREFIX = os.environ['PREFIX']
intents = nextcord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix=PREFIX, intents=intents)
@ -21,4 +18,5 @@ async def on_ready():
async def ping(ctx):
await ctx.reply('Pong!')
bot.run(TOKEN)
bot.run(os.environ['TOKEN'])