Hey guys, Trying to setup a custom command to register a users name to a thread in discord.
Example.
User types ! register
bot adds
users name and possible some extra text to a discord channel ?
Hey guys, Trying to setup a custom command to register a users name to a thread in discord.
Example.
User types ! register
bot adds
users name and possible some extra text to a discord channel ?
This is possible using Discord Webhooks.
First go to Intro to Webhooks and follow the instructions for making a Webhook.
Copy your Webhook URL.
Now go to the Nightbot custom commands page and add a command.
For the field Command, enter !register
For the field Message, enter:
$(urlfetch https://vxrl.xyz/api/discord/webhook/execute?url=$(querystring YOURWEBHOOKURL)&content=$(querystring $(user) registered!))
Replace YOURWEBHOOKURL
with your Discord Webhook URL.
To customize the message that is sent to the Discord channel, edit $(user) registered!
You can use command variables to make a dynamic message.
You can optionally add these parameters if you wish to further configure the message:
username
to override the default username of the Webhookavatar_url
to override the default avatar of the Webhooktts
to set whether the message is a TTS messagesuccess_message
to change the reply that Nightbot sends when the Discord message is successfully deliveredThis topic was automatically closed 14 days after the last reply. New replies are no longer allowed.