Build a Twitch.tv Chat Bot in 10 Minutes with Node.js - Tutorial - 2019!

Build a Twitch.tv Chat Bot in 10 Minutes with Node.js - Tutorial - 2019!

Dev Coffee

5 лет назад

64,802 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@H2P_TPL
@H2P_TPL - 15.07.2022 16:44

@Dev Coffee why is it using /me on chat and not just a normal message

Ответить
@hermannserain4146
@hermannserain4146 - 29.04.2022 11:30

great tutorial !!!

Ответить
@lelouch0reki392
@lelouch0reki392 - 04.11.2021 18:04

i know this was made a long time ago, but the tmi.js documentation page has changed, just thought i'd let you know

Ответить
@aw0o
@aw0o - 03.10.2021 02:22

hey! great video! every msg my bot sends is italic though.. any way to chnage this?

Ответить
@LoganoutGm
@LoganoutGm - 24.08.2021 04:04

Hello, How would you make the bot add points to viewers in chat every 10 min?

Ответить
@CHITUS
@CHITUS - 10.08.2021 14:44

Perfect tutorial. Clear & concise. Up and running in 10 minutes. Thanks!

Ответить
@anglerfish61
@anglerfish61 - 11.07.2021 10:51

thanks for this :)

Ответить
@Caiomsilva
@Caiomsilva - 03.06.2021 14:30

for me, it worked just for the first time i ran the code, after this i'm getting an error "no response from twitch", and now it doesn't send messages on chat

Ответить
@OwenWithAHammer
@OwenWithAHammer - 17.04.2021 00:50

I see you've declared war on Notepad users, challenge accepted.

Ответить
@jet4432
@jet4432 - 22.03.2021 07:17

Can anybody tell me if this method still works in 2021?

Ответить
@dylansirae8141
@dylansirae8141 - 17.03.2021 01:44

Hi everyone, can anyone tell me how to get the name of the category I'm currently streaming?
Like ${user["display-name"]} but for the category? :/

Ответить
@NoFearArzey
@NoFearArzey - 17.01.2021 02:28

Can you do extra tutorial for that counter?🥺

Ответить
@mrmalibu8513
@mrmalibu8513 - 06.01.2021 05:23

how to start the bot

Ответить
@bthftmaternitycontinuityof4250
@bthftmaternitycontinuityof4250 - 05.01.2021 18:34

when i type npm init it say npm should be run outside if node.js REPL, in your normal shell. How am i meant to fix this?

Ответить
@LucasLocatelli
@LucasLocatelli - 14.11.2020 05:34

If you use Windows you can do all node commands on a regular command line. With Visual Studio Code you can have your command terminal integrated directly on it.

Ответить
@eterchronos
@eterchronos - 05.11.2020 07:02

can i use my own account to login ? i need to create other twitch acc to my bot?

Ответить
@themanhchannel3656
@themanhchannel3656 - 05.10.2020 03:01

Can I have the code for the counting system?

Ответить
@matteovelludini5435
@matteovelludini5435 - 01.10.2020 14:51

the tmijs doc link is broken

btw nice tutorial.
i have a question what if i want to make this bot to connect to any channel , should i create an extension instead?
what about pings? do the count as requests? i know there are some limitation in the twitch API

Ответить
@chrisboiclique3011
@chrisboiclique3011 - 23.09.2020 06:15

Hey bro I code discord bots and I’m thinking about coding a twitch bot thanks for making this vid

Ответить
@kutaybugdayc9463
@kutaybugdayc9463 - 22.08.2020 04:24

when ı write node index.js in GITHUB comes with this error unexpected identifier and i says libary is no longer supported , soo what can i dowith this problem

Ответить
@paigeb2510
@paigeb2510 - 11.08.2020 00:56

Hey, when it connects, it connects as the channel itself (broadcaster) and not the bot?

Ответить
@larubin
@larubin - 02.08.2020 01:51

Perfect tutorial. Clear & concise. Up and running in 10 minutes. Thanks!

Ответить
@raiders2007
@raiders2007 - 26.07.2020 02:44

I typed node index.js and hit enter but it doesnt do anything nor does it connect.... am i doing something wrong?

Ответить
@pharrella_de_Vil
@pharrella_de_Vil - 24.07.2020 11:10

How do you rename your file to botetc??

Ответить
@ionicguy4919
@ionicguy4919 - 22.07.2020 21:18

Is twitch chat interaction all coded in java, stuff like marbles on stream?

Ответить
@rugmj6689
@rugmj6689 - 22.07.2020 14:36

Hey I’m trying to save chat to a txt file every stream but I keep getting this error (I’m using fs in node btw) My code: client.on(‘chat’, (channel, tags, message, self) => {
fs.readFile(‘log.txt’, ‘utf8’, function (err, data, tags, message) {
output = (data + ‘\n’ + tags.username + ‘:’ + message + ‘\n’)
fs.writeFile(‘log.txt’, output, function (err) {
console.log(err)
})
})
})

And the error I’m getting: output = tags.username + ‘:’ + message + ‘\n’)
^
TypeError: Cannot read property ‘username’ of undefined

Can someone help me please?

Ответить
@banerex
@banerex - 15.07.2020 18:44

This is a useless tutorial

Ответить
@Max_Griswald
@Max_Griswald - 15.07.2020 09:06

Does anyone know how to get the chat bot to only greet a user ONCE per stream (Or once ever, for that matter?) I would assume there is a way to add names to a list once they were greeted and then ignore names from the list when deciding to respond.

Ответить
@ElectroHouseMM
@ElectroHouseMM - 15.07.2020 03:39

Awesome tutorial! Would love to see it on github, i'm in the works of doing something similar for my bachelor thesis and would love to see the inner workings of the database/server things :D

Ответить
@YellowSwerveArchive
@YellowSwerveArchive - 26.06.2020 14:02

It was a huge help seeing how you actually ran the bot, thanks so much!

Ответить
@koback8069
@koback8069 - 20.06.2020 01:34

Can you teach how to create the database to do the final thing you did on the video?

Ответить
@crowskull789
@crowskull789 - 12.06.2020 22:05

Dev Coffee do you have a business email?

Ответить
@halimazen2608
@halimazen2608 - 02.06.2020 16:04

Bonjour what is tmi ?

Ответить
@yougotnulled2983
@yougotnulled2983 - 11.05.2020 10:43

Idk why this is my recommended, but you had the channel var yet you hard coded it... LUL

Ответить
@JuanMalfoy
@JuanMalfoy - 10.05.2020 08:24

Thanks! use nodemon!

Ответить
@heresjohnny3205
@heresjohnny3205 - 09.05.2020 14:46

that doc that you provided does not work

Ответить
@hyflicker
@hyflicker - 09.05.2020 05:30

@dev Coffee Do you or will you be making a video of a back end video for a twitch bot?

Ответить
@Peter_Gamerrr
@Peter_Gamerrr - 01.04.2020 13:54

disliked bc mac and fartnite

Ответить
@ai-spacedestructor
@ai-spacedestructor - 23.03.2020 00:59

imagine making a tutorial and just show your Auth key for the account so anyone on the internet can abuse the account lol

Ответить
@niccycc
@niccycc - 30.01.2020 03:09

Does anybody know how to make it so the bot can respond to all viewers without writing all the usernames of viewers in the channel parameter?

Ответить
@neilj9981
@neilj9981 - 20.01.2020 03:39

Hi - How do I make a chat (!command) output the users username and message to a text file on screen, and append to it with other users' input until I choose to delete it and start again on a new stream?

Ответить
@romulo271
@romulo271 - 10.12.2019 18:20

how to make custom gamble games? or something like that?

Ответить
@MsCorcor123
@MsCorcor123 - 28.10.2019 04:20

How do I set up timers for twitch bot? Also, can you make a video about the counting. I currently have a command in streamelements that counts when my dog does something during stream and would like to have it in the bot that i made.

Ответить
@RohitSharmaYT
@RohitSharmaYT - 25.10.2019 16:41

Amazing video dev🚩🙏🚩

Ответить
@basementblueprint1995
@basementblueprint1995 - 17.10.2019 20:32

@dev coffee I am looking to hire someone to program a chat bot for me. Any chance you have interest in join a project?

Ответить