its awesome
This commit is contained in:
parent
66c5cab5d3
commit
44607786cb
5 changed files with 35 additions and 7 deletions
24
application_cmds/force-crash.gd
Normal file
24
application_cmds/force-crash.gd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
extends RefCounted
|
||||
|
||||
#func on_ready(main, bot: DiscordBot) -> void:
|
||||
# pass
|
||||
#
|
||||
#func on_autocomplete(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
||||
# pass
|
||||
|
||||
func execute(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
||||
if not Tools.check_perms(interaction):
|
||||
return
|
||||
|
||||
print("uhoh?")
|
||||
interaction.reply(
|
||||
{
|
||||
"content" : "mrowww..."
|
||||
}
|
||||
)
|
||||
print("ohhuh")
|
||||
bot.get_tree().quit()
|
||||
|
||||
pass
|
||||
|
||||
var data = ApplicationCommand.new().set_name("force_crash").set_description("cause the program to quit for test purposes")
|
||||
Loading…
Add table
Add a link
Reference in a new issue