refactoring and stuff

This commit is contained in:
Tabby 2025-11-02 14:55:36 +11:00
parent 03e0f0d5a8
commit 9dc18b86a2
16 changed files with 260 additions and 115 deletions

View file

@ -16,7 +16,7 @@ func on_autocomplete(main, bot: DiscordBot, interaction: DiscordInteraction, opt
pass
func execute(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
if not Tools.check_perms(interaction):
if not Tools.check_perms(interaction): #limit access to technicians only
return
print(options)
@ -104,7 +104,7 @@ func on_interaction_create(bot: DiscordBot, interaction : DiscordInteraction):
return
if(interaction.data.custom_id == "spool-select"):
if not Tools.check_perms(interaction):
if not Tools.check_perms(interaction): #limit access to technicians only
return
print(interaction.data.values[0])
@ -135,7 +135,7 @@ func on_interaction_create(bot: DiscordBot, interaction : DiscordInteraction):
break
if(interaction.data.custom_id == "delete-unloadspool"):
if not Tools.check_perms(interaction):
if not Tools.check_perms(interaction): #limit access to technicians only
return
#print("deleting: " + endangered_printer)
@ -153,7 +153,7 @@ func on_interaction_create(bot: DiscordBot, interaction : DiscordInteraction):
})
elif(interaction.data.custom_id == "keep-unloadspool"):
if not Tools.check_perms(interaction):
if not Tools.check_perms(interaction): #limit access to technicians only
return
endangered_spool = null