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/
|
||||
dist/
|
||||
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
|
||||
python-dotenv
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
TOKEN=
|
||||
PREFIX=
|
||||
TOKEN=DiscordBotToken
|
||||
PREFIX=DiscordBotPrefix
|
10
src/main.py
10
src/main.py
|
@ -1,9 +1,12 @@
|
|||
import os
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
|
||||
PREFIX = os.environ['PREFIX']
|
||||
intents = nextcord.Intents.default()
|
||||
load_dotenv()
|
||||
TOKEN = os.getenv('TOKEN')
|
||||
PREFIX = os.getenv('PREFIX')
|
||||
intents = nextcord.Intents.default()
|
||||
intents.members = True
|
||||
|
||||
bot = commands.Bot(command_prefix=PREFIX, intents=intents)
|
||||
|
@ -18,5 +21,4 @@ async def on_ready():
|
|||
async def ping(ctx):
|
||||
await ctx.reply('Pong!')
|
||||
|
||||
|
||||
bot.run(os.environ['TOKEN'])
|
||||
bot.run(TOKEN)
|
||||
|
|
Loading…
Reference in a new issue