From 4736f116fd207debe2a08a99efc25868a92f6a5a Mon Sep 17 00:00:00 2001 From: Thomas Hodnemyr Date: Thu, 8 Sep 2022 02:08:27 +0200 Subject: [PATCH] Initial Commit --- main.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main.py 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