Easy and simple twitch bot in node.js.. very very easy..

Overview

How It Works

 identity: {
    username: 'YOUR BOTS USERNAME',   <-- This is where you place the username that you gave the bot account
    password: 'YOUR BOT OAUTH TOKEN',   <-- This is where you place the OAUTH token for the bot..
  },
  channels:['YOUR TWITCH CHANNEL'],    <-- This is YOUR Twitch user handle.. make sure it matches exactly..
};

How to get OAUTH Token?

Its pretty easy actually.. if you want an auto generated one you can use This to get one auto generated.. just make sure you make a new twitch account for the bot before doing it.. Don't wanna have the bot being youself lol.

How to know the bot started up?

client.on('connected', (address, port) => {
  client.action('Ventispurr', 'Hi! VentispurrBot is connected');   
});

This is what the bot says on console startup.. its how you'll know the bot is connected to your chat

How to make a command

client.on('chat', (channel, user, message, self) => {
  if(message === '!ExampleCMD') {   
    client.action('Ventispurr', 'This is what the bot will say when the command is run');
}
});

This is a basic command for the bot.. inside the if(message ==='!command') is where youll put the trigger for the command.. Under that is the client action and thats what the bot says once the command is run..

How to add more commands

client.on('chat', (channel, user, message, self) => {
 if(message === '!ExampleCMD') {     
   client.action('Ventispurr', 'This is what the bot will say when the command is run');
   }
   });

Just copy this code and keep changing the client action and the command trigger for every command :D

How do I make the bot start?

You can use the console of anything.. Like replit, VS Code.. or anything that you really.. just run the command npm index.js and you'll be good to go..

Bot goes off once I close the code text editor

This is normal.. unless you're hosting it with a vps.. You can do it for free if you're using replit..

const express = require('express')
const app = express();
const port = 3000

app.get('/', (req, res) => res.send('Ventispurr was here!!'))

app.listen(port, () =>
  console.log(`Your app is listening to http://localhost:${port}`)
);

Just put this at the top of the index.js file and put a few enters at the top.. then run the npm install express command.. after that run npm index.js again and youll notice in replit that this has shown up now.

Screenshot 2021-10-10 175910

Thats good if you see this.. Once you do head over to Uptime Robot and create an account and then create a new monitor.. copy the link that replit shows and then go through the uptime robot promps. This will ping the replit every 5 minutes so the bot wont shut down.. be sure to stop it once you're done streaming though!!

For more help

You can join the Discord to get help from me!

You might also like...

Ini Adalah Tools Bot WhatsApp,Pengodean Ulang Dari Sc Bot Kanna Bot

Ini Adalah Tools Bot WhatsApp,Pengodean Ulang Dari Sc Bot Kanna Bot

Node Modules Belum Selesai Unduh File Bot Lengkap Node Modules Click Here Lord Bot FOR DEPLOY HEROKU USER Instal Buildpack heroku/nodejs https://githu

Jul 1, 2022

This bot can raise your mood. This bot send joke often our channel for users. Sometimes bot don't work because we have not server for this project...)

This bot can raise your mood. This bot send joke often our channel for users. Sometimes bot don't work because we have not server for this project...)

Hi, welcome to send-joke-bot telegram bot project 🤖 What can do this bot ? This bot can raise your mood. This bot send joke often our channel for use

Sep 26, 2022

Bot sviluppato in Node.js che permette la prenotazione e il successivo invio dello screenshot di quest'ultima tramite un bot di telegram.

Unimore-Bot Bot sviluppato in Node.js che permette la prenotazione e il successivo invio dello screenshot di quest'ultima tramite un bot di telegram I

Jun 9, 2022

This bot is a cool Discord bot made in discord.js using Node.JS

This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

May 31, 2022

🌈 A very simple window communication library

🌈 A very simple window communication library

window-channel A very simple window communication library. Get Start! Install npm install @haiyaotec/window-channel Usage/Examples Client import

Oct 29, 2022

A simple and easy-to-use WhatsApp bot project based on Multi-Device Baileys and written in JavaScript

A simple and easy-to-use WhatsApp bot project based on Multi-Device Baileys and written in JavaScript

MIZUHARA ANIME THEMED FULL FLEDGED MULTI DEVICE WHATSAPP BOT WITH COOL FEATURES A Full Fledged MD Bot For Bot Lovers REQUIREMENTS • HOW TO INSTALL? •

Oct 25, 2022

nganu bot, multi device based simple whatsapp-bot with social media downloader

nganu bot, multi device based simple whatsapp-bot with social media downloader

nganu A Simple Multi-Device WhatsApp Bot simple whatsapp-bot using baileys-md to download social media post and many features Install set instagram se

Nov 20, 2022

A bot Similar to the reaction roles discord bot, but free. Written in JavaScript, and uses MongoDB.

Discord Reaction Roles bot About • Features • Installation • Setting Up About An open source reaction roles bot to anyone who needs one in their serve

Dec 22, 2022

Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Mar 20, 2022
Owner
Ventispurr
Average Discord Bot Developer || 16 years... and counting || Forever Femboi and Goth dad
Ventispurr
Bot criado na live twitch.tv/444jeans

Bot da Live O Bot da Live foi um bot criado na live twitch.tv/444jeans com o foco em ensinar conceitos de programação utilizando o bot como um meio. P

Jean Lucas de Carvalho 7 Jan 25, 2022
A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Tomato6966 472 Dec 25, 2022
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion

ReactPlayer A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, M

Pete Cook 7.2k Jan 4, 2023
A web app for seeing your recent Twitch chat mentions and/or other tracked words amongst channels you follow.

Mentions A web app for seeing your recent Twitch chat mentions and/or other tracked words amongst channels you follow. Requirements NodeJS. Client ID

Ravenbtw 3 Dec 22, 2022
Twitch-webos - Trying to be a better TwitchTV-App

twitch-webos This should be a better TwitchTV-App without lagging of features like VODs. Credits Skeleton from https://github.com/webosbrew/youtube-we

null 3 Mar 24, 2022
The game we're working on every Tuesday at 6pm at http://twitch.tv/jutanium

Usage Those templates dependencies are maintained via pnpm via pnpm up -Lri. This is the reason you see a pnpm-lock.yaml. That being said, any package

Dan Jutan 7 Dec 8, 2022
New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! > heroku/nodejs > https://g

zeeone 27 Feb 9, 2022
I’m a very useful music bot that can make you play a music with a simple command! I have a lot of good commands that you can have a better experience playing your favorites songs!

I’m a very useful music bot that can make you play a music with a simple command! I have a lot of good commands that you can have a better experience playing your favorites songs!

Hugo Kishi 2 Aug 16, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023