How do I create a !hook command

Asked Jun 30, 2022·3 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I am looking to set up a command on Nightbot where when you type !hook USER it will trigger $(user) has hooked $(touser)$(query) - type !unhook to unhook them! I then want the option of someone in chat being able to type !unhook USER to unhook them.

If there can be a timer included where if they are not unhooked within a specific period of time they "die on hook" that would be useful too

3 replies

Hey @Pearly Mammoth!

Sounds like a fun idea, but this can't easily be done with Nightbot, especially with the timer, I think making a custom API for this would be your best shot at making it an actual thing.

How would I go about it with the Custom API method?

Making a custom API means that you write code to host on a server, then you execute that code thanks to $(urlfetch).