Template
1
0
Fork 0
mirror of https://github.com/uhIgnacio/discord-railway.git synced 2024-08-14 23:57:29 +00:00

runtime, Procfile, main files

This commit is contained in:
in the moon 2021-09-09 22:22:11 +00:00
parent 256623e69f
commit 7dfa9b7754
5 changed files with 29 additions and 0 deletions

3
.gitignore vendored
View file

@ -127,3 +127,6 @@ dmypy.json
# Pyre type checker
.pyre/
# Prettier
.prettierrc

1
Procfile Normal file
View file

@ -0,0 +1 @@
web: python3 src/Main.py

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
nextcord

1
runtime.txt Normal file
View file

@ -0,0 +1 @@
python-3.8.12

23
src/Main.py Normal file
View file

@ -0,0 +1,23 @@
import nextcord
import os
from nextcord.ext import commands
# Intents
intents = nextcord.Intents.default()
# Bot
bot = commands.Bot(prefix=os.environ.get('PREFIX'), allowed_mentions=None, )
# load cogs
if __name__ == '__main__':
for filename in os.listdir("cogs"):
if filename.endswith(".py"):
bot.load_extension(f"{filename[:-3]}")
@bot.event
async def on_ready():
print(f"{bot.user} | {bot.user.id}")
bot.run(os.environ('TOKEN'))