Compare commits
2 Commits
ddc936a891
...
3a37b439da
Author | SHA1 | Date |
---|---|---|
igna | 3a37b439da | |
igna | 4e7572053d |
|
@ -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
|
|
@ -1,2 +1 @@
|
|||
nextcord
|
||||
python-dotenv
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
TOKEN=DiscordBotToken
|
||||
PREFIX=DiscordBotPrefix
|
||||
TOKEN=
|
||||
PREFIX=
|
10
src/main.py
10
src/main.py
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue