Compare commits

..

No commits in common. "3a37b439da710ccd258652969ce58701e3fa7bef" and "ddc936a891b5da88a496cb7e0dc2cbf47aa1efc3" have entirely different histories.

5 changed files with 12 additions and 9 deletions

4
.gitignore vendored
View file

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

View file

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

View file

@ -1 +1,2 @@
nextcord nextcord
python-dotenv

View file

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

View file

@ -1,9 +1,12 @@
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()
intents = nextcord.Intents.default() TOKEN = os.getenv('TOKEN')
PREFIX = os.getenv('PREFIX')
intents = nextcord.Intents.default()
intents.members = True intents.members = True
bot = commands.Bot(command_prefix=PREFIX, intents=intents) bot = commands.Bot(command_prefix=PREFIX, intents=intents)
@ -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'])