

Now click the "Bot" tab on the right side of your screen.Ĭlick "Add Bot" to generate a bot token. This creates a new bot where you can customize the name, description, and profile picture! Let's set up a bot through Discord before creating its features! Click here.Ĭlick the "New Application" button at the top right. By the end you will have programmed a sweet bot to add to your Discord server! Bot Setup If you want to work the full script template, just find it here.In this workshop, we're going to create a Discord bot that allows users to save custom messages that they can have the bot send at any time. Questions about this script or anything else? Join our discord. Great! The Bot is ready and if you’ve followed exactly this tutorial your result will look like this.įeel free to clone this script and modify it as you want. You can add an image to if you want to give a face to your Bot. Most importantly, we need the name of the Bot and the message. Once it’s added and you have configured the server, be sure to have a separate channel for this bot. Then, we can use this module to create the Help Bot. Wayscript provides a Discord module you can use to read or write messages. Now that we have the text message, we can easily respond now via our Discord bot. Then we can add a custom message for this branch too. The Else will be executed if the message typed by the user is not equal to A, B, or C. As I said earlier, we have four conditions. We are going to do the same for the second branch and the third branch. Then in the first branch concerning action A, add Create Variable module.Īnd then add this variable and text message. We are going to create a string variable where we’ll store the message we want to send. Now we have different branches for our scenario.

If you want to add another condition, just click on Add Else if. Once it’s done, we can add the conditions.

A message will be displayed if the user hasn’t entered a valid action, I mean a valid action is A, B or C. Here we have three conditions, but exactly four. This list contains information we’ll use to perform actions. But first, we have to configure the Trigger.įor the output, be sure to have Discord Message selected. Well, The trigger will depend on the action I add on the discord channel.

For this purpose, we’ll use the Discord Trigger. When someone will write a message in the help channel, we’ll capture the message and perform actions on it, and later send a response. However, you can read about the module we are going to use in this post. So today, we are going to build a Customer help Bot for Discord. Bots can be easily built and integrated into any services if you are using the Wayscript platform. With services used by millions of people, it’s difficult for Customer service people to handle all the problems addressed to them. Bots today are an important part of Customer help services.
