Create a Webhook & Remote Control - Noobyguy775/natrolib GitHub Wiki

How do I create a webhook?

We highly recommend using your own private server in Discord instead of a shared one! If you do not have a server in Discord you will need to create one first, at the bottom of your server lists there is a +, hit it and follow instructions.

  • In your server, create a text channel.
  • Click "Edit channel " on the channel where you want the status updates from Natro Macro to be sent.

image

  • Click "Integrations"
  • Click "Created Webhook"

image

  • Click on the newly created webhook (Captain Hook)

image

Optional: Rename the webhook

  • Save changes
  • Click "Copy Webhook URL"
  • Click ESC

image

  • Open Natro Macro
  • Open Status Tab
  • Click "Change Discord Settings"

image

  • Click the paste button to paste your webhook link
  • Close the Discord webhook settings
  • Restart Natro

when you start to use it after this, status updates will be sent to your webhook and once every full hour a hourly report will be sent there too, please note that windows 10 is required to get honey reads on the hourly reports, everything else works in prior windows version but not that due to Windows not including OCR pre win 10.

Remote Control

In Version 0.9.2, Remote Control support has been added to the main Macro.

This is a fully integrated feature Exclusive to and Developed by @xspx ,specifically for Natro Macro. This feature is coded in the same AHK Version the Macro its self is coded in.

Please be aware that this is an advanced feature intended for users with an above average level of knowledge and comprehension of Discord Bot Tokens, Computers, Internet, Bee Swarm Simulator, Natro Macro, and life its self.

Before you start, please read this!!

Remote controls are a very advanced feature, if you had problems unzipping the macro file, it might be best if you skip this feature. If you feel confident that you can do this, then read and follow this guide carefully, we will not support you in failing to follow this guide or setting bot permissions right in your own server!

Use your own server for webhook!! If you use a shared server, anyone in the server will be able to control your macro, download files, restart computer and inflict potentially harm. Make sure ONLY you and the bot can post messages to the main webhook channel!

image

  • Click "New application
  • Click the blue text "Discord API"

image

  • Click "Applications"
  • Click "New Application"

image

  • Name your bot
  • Read and agree to the discord user terms and policy
  • Click "Create"

image

  • Click "Bot"
  • Click "Add Bot"

image

  • When generated click "Copy"
  • Select "Public bot" and "Message content intent" (you need to scroll down for the second option)

image

  • Open Natro and click "Change Discord Settings" in the status tab
  • Click the discord icon top right so that it turns golden
  • Activate "Bot token"
  • Click the button to paste your bot token

image

  • Click OAuth2
  • Click URL Generator
  • Select "Bot" under scopes
  • Select the following Bot permissions -"Send Messages" -"Embed Links" -"Attach Files" -"Read Message History" -Click "Copy"

image

  • Open the web browser that you are logged in to discord with and past the link in the address field
  • Select your server
  • Click Continue

image

  • Go to your discord server
  • Click on the down arrow beside its name
  • Click "Server Settings"

image

  • Click "Integrations"
  • Click "Manage" on the bot you just added

image

  • Click "Add channels" and add the channels you intend to use for this character
  • Give rights to the bot in the webhook channels for the character and deselect the rest as shown

image

  • Right click your main webhook channel
  • Click "Copy ID"
  • Open Natro Discord bot settings and click to paste the channel ID where it say "Main channel ID" (make sure it's activated)
  • IF you want the startup report and the Hourly reports to be sent in a separate channel from the main status update channel, mark the checkbox for "Report channel ID" and add an ID for the separate channel.
  • IF you want a ping when critical events like disconnects happen, set "User ID (pings)" to ON and add your discord use ID to the box. User ID is obtained by right clicking your name and selecting "copy ID"

image

  • Click the cogwheel next to the channels you use (do step 26 once for every channel)
  • Click "Permissions"
  • IF "Private Channel" is OFF like in the image, click ESC
  • IF "Private Channel" is ON (it's off in the image here), then you need to either disable it or add your bot and give it the rights to send messages, embed links, attach files and read message history
  • Click "ESC"

  • Restart Natro Macro

  • Start it up as usual

  • Now you should be able to control the macro from your webhook, test by sending ?ss in your main webhook chat. You should get a screenshot back. Please note that the macro need to be running!

Example of control in action:

image image