diff --git a/.gitignore b/.gitignore index b6e4761..aa8a35c 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +# Prettier +.prettierrc diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..0149621 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: python3 src/Main.py \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c1f996d --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +nextcord diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..946d2ad --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.8.12 \ No newline at end of file diff --git a/src/Main.py b/src/Main.py new file mode 100644 index 0000000..11fd784 --- /dev/null +++ b/src/Main.py @@ -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'))