Initial Commit
This commit is contained in:
commit
4736f116fd
|
@ -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'))
|
Loading…
Reference in New Issue