Chat Bot Guide: This will walk you through the process of setting up your Livecoding.tv chat bot. Follow these steps to install and configure the chat bot to your PC.
Visit Node.js official website. It will automatically detect your Operating System and display a download link. For example, it will display the following download link for 64 bit Windows OS.
Download node MSI for windows by clicking on download for windows link.
The recommended version is v4.3.2 LTS. After downloading the MSI, the installation window will appear as shown below.
NodeJs installation window
Once the installation has finished, verify it by typing node-v in the command prompt.
Command Prompt
To proceed installing, the bot will fork the repository on Github.
Use the Github Desktop App. Register an account if you don’t have one and install Github Desktop App.
Follow these steps.
XMPP Password
var username = ‘LCTV_BOT_USERNAME’; // Your Livecoding.tv username
var password = ‘XMPP_BOT_PASSWORD’; // Found in step 3
var room = ‘LCTV_USER_WHERE_BOT_WILL_BE’; // Room username
module.exports = {
room: username,
username: username,
jid: username + ‘@livecoding.tv’,
password: password,
roomJid: room + ‘@chat.livecoding.tv’
};
{
“plugins”: {
“notifications”: true,
“api-triggers”: true
}
}
You will be prompted by firewall to allow network access.
At this point the bot is ready for your commands. You can enter the following commands in the chat window.
!say [type message] – Verbally speaks a message.
!status – Returns the user status.
!subject [type subject] – Sets the room‘s subject to {subject}.
!todo – List the current TODOs.
!top [input number] – Displays the top {number} viewers.
!voices – Lists the available voices to be used with the !say command.
We’re thrilled to announce an exciting opportunity for you to win not one but two…
Acquiring practical skills is crucial for career advancement and personal growth. Education Ecosystem stands out…
Artificial Intelligence (AI) has been making significant strides in various industries, and the software development…
Another week to bring you the top yield platforms for three of the most prominent…
If you hold a large volume of LEDU tokens above 1 million units and wish…
It’s another week and like always we have to explore the top yield platforms for…
View Comments
There is a typo in this article... the module.exports object needs to contain a 'roomJid' not a 'roomid'. Also, the custom folder needs to be in under the setup folder, and it doesn't specify that in this article.
Cheers!
Thanks Chris, for pointing out the error. We have rectified it.