Initial Commit

This commit is contained in:
Thomas Hodnemyr 2022-09-08 02:08:27 +02:00
commit 4736f116fd
1 changed files with 21 additions and 0 deletions

21
main.py Normal file
View File

@ -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'))