Steps to create and configure Discord bot on Facebook Gaming

If you have managed to gain a small or large audience in your live game broadcasts, then you should create a Discord bot for Facebook Gaming as soon as possible. In this way, you can interact with your followers without the need to be present in the conversions.

Do you want to know a little more about the Discord bot? Do you want to use the Discord bot for your Facebook Gaming streams? Well, in this article we will give you a complete guide to this interesting little program so that you can make the most of it.


What is a Discord bot?

In essence, a Discord bot is a small program that allows you to perform certain tasks within the Discord interface. It is a valuable program that aims to improve communication between content creators and followers. It is the best tool for those who have a Facebook Gaming account.

What is a Discord bot for?

A Discord bot is a voice chat application, which can be assigned various types of functions, ranging from the basic to the most advanced. For example, if you have a chat with several people, you can do the following:

  • Create automatic messages.
  • Direct to other chat channels.
  • Send calls.
  • Schedule activities.
  • Among other things.

The type of use you can give a bot will depend on your needs and, if it is about maintaining and interacting with your loyal Facebook Gaming followers, this application is the one.

How to create the Facebook Gaming Discord bot?

Facebook Gaming is undoubtedly one of the best platforms for streaming games. Therefore, if you want to be a true streamer you have to use all the tools you have at your fingertips so that you can do it. One of these tools is the Discord bot, and by following these instructions you can create the bot:

Step One: Create the Bot

First you are going to have to look for a bot, on the internet there are many pages that can help you with it and, you just have to choose the one that most generates confidence.

Now go to this link: https://discord.com/developers/applications/me. Go to the “Add Bot” section and below you will find the option “Build Bot” and voila, the Bot will appear automatically.

Second step: Get the Token

In the User section of App Bot, click on “Token: click to reveal”, now you will see a text string which you must save.

Third step: Send the Bot to the server

In the box “Application details” go to your “Customer ID”, you will find a URL and replace it with the following: https://discordapp.com/oauth2/authorize?&client_id=CLIENTID&scope=bot&permissions=8.

Copy the new URL generated with your identification number and copy it into the browser.

Discord will open automatically and the bot will join the chat room, which is located in the part of the menu on the right side.

Step Four: Create a Folder

On your computer create a folder, in this folder all the bot files will be stored.

And voila, now you have your Discord bot so you can use it in a chat room with your Facebook Gaming followers. Obviously it has to be configured, but we will talk about that in the next section.

How to configure the Facebook Gaming Discord bot?

Now you are going to learn how to configure the Discord bot so that it can work in the chat room where the followers of your Facebook Gaming account are. This process can be a bit tricky, so pay close attention to the following:

Step One: Open a Notes Blog

Create a blog of notes, which will help you create three files for the bot.

 

Paste this code: {

“Token”: “Tu token de bot”

}

Between the quotes you will add the token that you generated in the second step of the previous section.

 

In another file add the following code: {

“name”: “greeter-bot”,

“version”: “1.0.0”,

“description”: “My first Discord bot”,

“main”: “bot.js”,

“author”: “Your name”,

“dependencies”: {}

}

 

In this file you can modify the name and description.

Save this file in “package.json” format in the Discord folder.

Second step: Define the code for the bot

Create a third file and paste the following:

 

var Discord = require(‘discord.io’);

var logger = require(‘winston’);

var auth = require(‘./auth.json’);

// Configure logger settings

logger.remove(logger.transports.Console);

logger.add(new logger.transports.Console, {

colorize: true

});

logger.level = ‘debug’;

// Initialize Discord Bot

var bot = new Discord.Client({

token: auth.token,

autorun: true

});

bot.on(‘ready’, function (evt) {

logger.info(‘Connected’);

logger.info(‘Logged in as: ‘);

logger.info(bot.username + ‘ – (‘ + bot.id + ‘)’);

});

bot.on(‘message’, function (user, userID, channelID, message, evt) {

// Our bot needs to know if it will execute a

// You will hear messages starting with ‘¡’

if (message.substring(0, 1) == ‘¡’) {

var args = message.substring(1).split(‘ ‘);

var cmd = args[0];

args = args.splice(1);

switch(cmd) {

// !ping

case ‘ping’:

bot.sendMessage({

to: channelID,

message: ‘“Cheers! Welcome to the server!

});

break;

// Add any command if you want

}

}

});

 

You can modify the messages, but don’t forget to put quotation marks around each text.

Save this file in “package.json” format in the Discord folder.

Third step: Start the bot

Finish by running the bot, for this, you just have to type “node bot.js” at the command prompt. all this procedure is done inside the Discord folder.

And following these instructions you can configure the Discord bot so that you can send notifications to your followers of the transmissions you make in the Facebook Gaming App. It is not complicated and you can do it in a matter of minutes.

Facebook Gaming’s Discord bot on live streams

Usando el chat de Discord puedes enviar notificaciones a tus seguidores para que puedan estar al tanto de tus transmisiones de juegos en vivo. Si quieres configurar las notificaciones de Discord a tu cuenta de Facebook Gaming, vas a tener que realizar cada uno de los siguientes pasos:

Using Discord chat you can send notifications to your followers so they can be aware of your live game broadcasts. If you want to configure Discord notifications to your Facebook Gaming account, you will have to perform each of the following steps:

Configure in Discord

  1. In your Discord account, go to the option “Server Settings of your server”.
  2. On the Webhooks tab, click webhook.
  3. Enter a name for the bot and add an image.
  4. Copy the URL of the webhook and save it to a note blog.

Configure on Facebook

  1. Go to the “Studio Creator” section of Facebook Gaming.
  2. In the “Creative tools” section, go to the “Live streams panel”.
  3. Now go to the section “Panel for streamers”, this option is only visible for those who are part of the Level Up program.
  4. Now in the actions section select “Discord Notifications”.
  5. Paste the URL of the webhook in the field where it corresponds and click on “Configure webhook”.

And this is everything you need to know about the Discord bot for Facebook Gaming, a program that will undoubtedly help you become the best streamer in your country. Therefore, take advantage of what you have learned in this post to start creating your own bot. It is not complicated and it is only a matter of following the instructions mentioned in this post. Come on, cheer up!

Rate and Share this content

Leave a Comment