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:
parent
256623e69f
commit
7dfa9b7754
5 changed files with 29 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -127,3 +127,6 @@ dmypy.json
|
|||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
# Prettier
|
||||
.prettierrc
|
||||
|
|
1
Procfile
Normal file
1
Procfile
Normal file
|
@ -0,0 +1 @@
|
|||
web: python3 src/Main.py
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
nextcord
|
1
runtime.txt
Normal file
1
runtime.txt
Normal file
|
@ -0,0 +1 @@
|
|||
python-3.8.12
|
23
src/Main.py
Normal file
23
src/Main.py
Normal 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'))
|
Loading…
Reference in a new issue