commit 4736f116fd207debe2a08a99efc25868a92f6a5a Author: Thomas Hodnemyr Date: Thu Sep 8 02:08:27 2022 +0200 Initial Commit diff --git a/main.py b/main.py new file mode 100644 index 0000000..5582259 --- /dev/null +++ b/main.py @@ -0,0 +1,21 @@ +import disnake +import os +from dotenv import load_dotenv +from disnake.ext import commands,tasks + +#Get variables +load_dotenv('.env') + +intents = disnake.Intents().all() +bot = commands.Bot( + command_preifx='%', + sync_commands_debug=False, + intents=intents +) + +@bot.slash_command(description="Test Command") +async def test_command(inter:disnake.ApplicationCommandInteraction, string:str = "Cake is a lie"): + await inter.response.send_message(string) + + +bot.run(os.getenv('BOT_TOKEN')) \ No newline at end of file