Jump to content

Script Factory - A Guide To Using Webhooks.


Zackaery

Recommended Posts

This is a guide on how to use webhooks for discord, to allow your script to send information to your discord server.

Step 1 - Creating a server:
You need to create a discord server that you will want to have your discord webhooks sent too. If you don't have one already, follow the pictures below:
pvlwu4E.pngg4FAiRO.pngJpzBS1N.png

 

Now give your server a name, and click create!
ayzxgdR.png

Step 2 - Creating a channel for your webhooks:

Create a new channel for your webhooks to be sent to. If you want this channel to only be seen by you, and there's other people in your discord, I'd advise you to set this channel to private. 
Your username of the account will be sent in the webhook, so only allow people you trust to see these.
xe27Cti.pngY6CKOVm.png

 

Step 3 - Creating your webhook:

Now to create the actual webhook link via discord, you will need to add the integration to the channel. You can easily do so by following below:
jNmV6cx.pngvlv7fqz.png

wVwsaH3.png

 

Step 4 - Adding your webhook to Script Factory:

Now navigate to Script Factory, and open up the settings, we will paste the webhook there.
lGeKYHd.pngr27c2Ln.png

DO NOT SHARE YOUR WEBHOOK WITH ANYONE YOU DO NOT TRUST. - Anyone that has access to your webhook will be allowed to use it and send anything they want to that channel, so make sure to only share it with those you trust!

Step 5 - Creating your webhook action on Script Factory:
Now, on Script Factory, we will go ahead and link up our webhook to a method, so we can get a discord notification in real time of what's going on with our script.

Firstly, create your method that you want to trigger the webhook. I will be using an example for equipping a Dragon scimitar.

After you create the method, now you can add an action to that method to send your webhook, you can add the webhook by adding the action below via Other > Variables > Send Discord Message:
7vYpCQL.png

Fill in the message you want to send, you can use Discords special characters to bold text / quote / italic / etc. You can't use [ : Colon] or [ , Comma] unfortunately.

RqNpaQY.png

3eGbW69.png

Step 6 - Testing your webhook:

Now press play, and watch your discord message get sent!

gCMD91Q.png

Congratulations, you've successfully set up your discord webhooks, and can now see stuff in real time, while you're away from your bots!

  • Heart 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...