![]() This is where you will create your webhook entries and get the authentication tokens that your script will need to send messages into the server.Įach webhook needs its own name, and you can give them individual icons to pretty things up a bit. Once you’ve created it, you then need to go into the server settings for webhooks. Incidentally, you should setup the server on your computer via the Discord web interface, as not all of the options mentioned below are currently available from the mobile applications. All you really have to do is give the thing a name and click “Create”. ![]() Setting Up the Discord ServerĪs mentioned previously, setting up a Discord server is exceptionally easy. ![]() Let’s also say that the temperature sensing is happening in the background and is available to our code as the variable CURRENT_TEMP, and that the image "latest_img.jpg" is also automatically popping up in the current directory where our Python script can get to it. But as an example, let’s say you wanted to create a weather monitoring station that would post the current temperature and a picture of the sky to your Discord server every hour or so. I don’t want to get too bogged down with the specifics of how you can use Discord in your project, I leave that up to the reader’s imagination. Since anyone can create a persistent Discord server for free, it’s an interesting platform to use for IoT monitoring and logging by simply sending messages into the server.Ī Practical Example Weather bot posting to my Discord channel In this article we’re going to look at how easy it is to create a simple “bot” that you can plug into a Discord server and do useful work with. But I’ve also come to the realization that I’m OK with that.īut this isn’t a review of Discord or an invitation to join the server I’ve setup for my Battlefield platoon. After having used it for a few months now and joining servers dedicated to everything from gaming to rocket science, I can’t say that my initial impression of Discord is inaccurate: it’s definitely just a modern IRC. It seemed like the same kind of stuff we’ve had for decades, but with an admittedly slick UI. One of the reasons for this phenomenal growth is how easy it is to create and moderate your own Discord server: just hit the “+” icon on the website or in the mobile application, and away you go.Īs a long-time IRC guy, I was initially unimpressed with Discord. Originally intended as a way to communicate during online games, Discord has grown to the point that there are servers out there for nearly any topic imaginable. Available commands and other information for the VoteTo bot will be returned.Discord is an IRC-like chat platform that all the young cool kids are hanging out on. For example, when using the VoteTo bot, type "!vthelp" to open the VoteTo help page. Use this prefix combined with the action name to trigger a respone. Each bot will have a prefix listed in the bot summary card. How do I use the Discord bot?Īfter you invite the bot, you can use the bot's commands to perform a requested action. The developers of the bot must enable this option. This bot must be present on another server to locate it's profile. Some bots have an option to add the bot directly from Discord by clicking on the bot's profile and clicking the add the bot button. Admin privileges are required in order the add the bot. This will open a new invite window from Discord with the option to add this bot on any server you are an admin on. ![]() How do I add a Discord bot to a server?Ĭlick the "Invite Bot" button from the bot's summary card. The bot will respond to a specific command and perform an action in return. A Discord bot is a program that acts as a Discord user on a selected server.
0 Comments
Leave a Reply. |