7/29/2023 0 Comments Rss bot for discord![]() Here are some other ideas what to do with your bot:Īnd don’t forget that you can mix and match APIs to build cool stuff. ![]() Now when a new blog post is published, the bot automatically posts it on the server for everyone to enjoy: Now we can start doing fun things with the bot! And by we, I mean you… My example here is rather unsexy I am using the RSS trigger “When a feed item is published” to automatically post new Forward Forever blog posts to the Discord Server ? Body: If everything works, you should see a message on your Discord server sent by the bot. (instructions above how to get channel ID) To post content as the bot, we need to add an HTTP action to the flow: Now we can build something simple to try it out. When you have enabled the Developer Mode, you can right-click your server name to copy its ID: You can enable it from your User settings, under the Advanced tab: The easiest way to grab it is by enabling Developer Mode on Discord. So to post to the channel we need to find the channel ID. And to send messages to channels, the end point is /channels//messages. It’s okay to not understand any of this though, as long as you are good at following instructions ?Īccording to Discord API documentation the base URL for HTTP requests is. If you want to learn some API basics before proceeding, take a look of my previous blog post How to use API with Power Automate. But first we need to figure out how to use Discord API. The second part of the magic happens in Power Automate. How to use Power Automate to post as the Discord bot Once you have completed the authorization process, you can go to your Discord Server to check that you can see the bot among the server members. Now you should be able to authorize your bot to enter your Discord server: When you have selected the scope and the bot permissions, copy the generated URL to your browser and open it. To post content to the server the bot only needs “Send Messages” permission: The bot permissions become visible after this. Now go to OAuth2 settings and choose OAuth2 URL Generator:įirst select “bot” from the scopes. When we are happy with everything, we can hit “Reset Token” button to get the token for the bot. The username and the profile picture you set here will be visible on the Discord server when the bot posts content. You can add a new bot after you have created the application: You can ignore all the general settings, though I uploaded a profile picture to make it more pretty ? Log in to the Developer Portal and create a new application: That is where you set up our Discord bot. Discord Server in which you have administrator rights (you can create one for free)įirst part of the magic happens on Discord Developer Portal. ![]() Discord account (you can create one for free).Using HTTP actions in Power Automate requires either a trial license or, for example, Power Automate per User plan. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |