mirror of
https://github.com/uhIgnacio/heroku-example.git
synced 2024-08-14 22:47:00 +00:00
Compare commits
No commits in common. "3a37b439da710ccd258652969ce58701e3fa7bef" and "ddc936a891b5da88a496cb7e0dc2cbf47aa1efc3" have entirely different histories.
3a37b439da
...
ddc936a891
5 changed files with 12 additions and 9 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,4 +3,6 @@
|
||||||
spec/
|
spec/
|
||||||
dist/
|
dist/
|
||||||
config.json
|
config.json
|
||||||
.env.example
|
a.py
|
||||||
|
Procfile.windows
|
||||||
|
# procfile.windows is due to most-likely brken on few things
|
2
.replit
2
.replit
|
@ -1,2 +0,0 @@
|
||||||
language = "python3"
|
|
||||||
run = "python3 src/main.py"
|
|
|
@ -1 +1,2 @@
|
||||||
nextcord
|
nextcord
|
||||||
|
python-dotenv
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
TOKEN=
|
TOKEN=DiscordBotToken
|
||||||
PREFIX=
|
PREFIX=DiscordBotPrefix
|
|
@ -1,8 +1,11 @@
|
||||||
import os
|
import os
|
||||||
import nextcord
|
import nextcord
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
PREFIX = os.environ['PREFIX']
|
load_dotenv()
|
||||||
|
TOKEN = os.getenv('TOKEN')
|
||||||
|
PREFIX = os.getenv('PREFIX')
|
||||||
intents = nextcord.Intents.default()
|
intents = nextcord.Intents.default()
|
||||||
intents.members = True
|
intents.members = True
|
||||||
|
|
||||||
|
@ -18,5 +21,4 @@ async def on_ready():
|
||||||
async def ping(ctx):
|
async def ping(ctx):
|
||||||
await ctx.reply('Pong!')
|
await ctx.reply('Pong!')
|
||||||
|
|
||||||
|
bot.run(TOKEN)
|
||||||
bot.run(os.environ['TOKEN'])
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue