![]() ![]() Navigate to the file called API_Request_Handler.js This is the endpoint that will retrieve messages stored in a simple database Key-Value Storage on Autocode.Ĭopy the Autogenerated API endpoint found at the bottom of API_Request_Handler.js On lines 12 - 16 we add a reaction to every Discord message invoking the prefix command with await This is nice to have so that our users know their request went through. On lines 7 - 10 we store the messages from Discord with await Utils.kv is an easy to use database service available on Autocode. ![]() This can be changed to whatever you like, but for now, keep it as is. If you click the trigger you will see that we have preset our prefix command to !message. The code inside the file will execute whenever someone types the prefix command !message followed by text in Discord. The file has been set to be triggered by Discord. Select Install App.Īfter you hit Continue you will be taken to your prefix.js file which looks like this: A green checkmark will appear noting that you have completed these steps. Once you complete the guided steps select Finish. Create a Discord Application through the Discord Developer Portal.Please follow the instructions in the popup window carefully as it will walk you through the following steps to create a Discord Application and link it to your Autocode account: If this is your first time linking a Discord account, select Link a New Resource. Install App on AutocodeĪfter you press Next you will be prompted to link a Discord Account. Hello streamers and devs! Are you looking to spice up your stream by making it more interactive? Well, you’ve landed on the right guide! Today I will show you a simple way to set up an OBS overlay that will allow your viewers to interact with you via a Discord bot using prefix commands! Display Discord Messages in Livestream Overlays ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |