runtime, Procfile, main files
This commit is contained in:
parent
256623e69f
commit
7dfa9b7754
|
@ -127,3 +127,6 @@ dmypy.json
|
|||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
# Prettier
|
||||
.prettierrc
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
nextcord
|
|
@ -0,0 +1 @@
|
|||
python-3.8.12
|
|
@ -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 New Issue