Download Node.js – https://nodejs.org/en/
Node.js Tutorial – https://youtu.be/Do_Hsb_Hs3c
Tmi.js Documentation – https://www.tmijs.org/
Generate OAuth Token – http://twitchapps.com/tmi/
Follow me on Twitter for updates! @dev_coffee or https://twitter.com/dev_coffee
source
Anybody know how to fix the err:
var client = new tmi.client(options)
^
TypeError: tmi.client is not a constructor
at Object.<anonymous> (/Users/WolvenOne/Desktop/TwitchBot/server.js:18:14)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
I cant get past https://youtu.be/K6N9dSMb7sM?t=383
i have the exact same code in my app.js file (with my personal api-key and username) and i get the error:
"error: Improperly formatted auth" 🙁
how can i get the time since i went live until the point i write a command? I want to make that !uptime command that shows it.
Is there a version of TMI but for Java?
This is awesome! thank you ! haha straight outta cookies 😀
Great video mang.. exactly what i was looking for when i googled "build a twitch bot with javascript"
updated versions with more advanced stuff? like ban commands, points, etc?
To start off I am not thte best at this. But I was wondering if there is ever going to be a part 2 with the bot automatically timing people out or banning people. With subscriber messages, cheers messages. With automatic messages and stuff like this. Since this is not my strong suit, I would love to a follow up. Or if anyone is able to help me with writing these commands 🙂
Awesome tutorial! Also your keyboard sounds amazing and I want it!
Any plans on a follow up to this? Maybe hooking it up to mLab instead of hard coding everything. Good work.
keeps on coming back with tmi.client is not a constructor. any ideas on how to fix that?
I have that same straight outta cookies shirt
this is a great tutorial btw!
can you show a vid on how to make HTTP 'POST' from twitch api
Hi, nice Vid, this get me started with node.js
Now my Q: how to run in on server, can anyone show me this.
Text Editor Name?
how you make the console.log code part appear in the command prompt? It's not appearing for me
thanks for the video bro. helped a lot
this part of the code doesn't appear on the console……. client.on('connected', function(address, port) {
console.log("Address: " + address + " Port: " + port);
}); I'm not sure if it's because of the version of Sublime, but it doesn't appear on the console at all, but the connection works
I'm confused as to how he ran the code. Where do you find that thing at the bottom right of the video? How do you get to it?
Your awesome man
For some reason I'm getting "tmi.client is not a constructor" error when trying to make the client.
Dude this video is so awesome just like your other videos. Please keep adding some more stuff. Cheers!
Thanks man. Gave me all the information I needed to get started.
Thanks this has really helped me get started. If you make another one a simple loyalty system demo would be a nice touch
When will you make another video about twitch bot?
Maybe this is a stupid question so sorry in advance.
Once I have this all working. Is it possible to take the app.js and host it on a webserver so that I can have it running at all times and not just from my pc?
+Dev Coffee this is an awesome video thanks for making it! I was wondering if you could take a look at my code and tell me what's going wrong.
I'm trying to make a bot that auto-bans a certain username whenever they join my channel, however currently it executes whenever anyone joins the channel.
heres the hastebin link to my code
http://hastebin.com/xaziteliha.php
You are awesome at explaining things. Good work man.
this is a great tutorial! please add coding support for manipulating stream currency through secondary bots like ankhbot.
If you want to do simple testing and are currently offline, you could always do this to go to just your Twitch chat without actually loading your channel:
http://www.twitch.tv/YOUR USERNAME HERE/chat
Why is js way faster at connection to an IRC than PHP?
will the generated oauth token expire?
Awesome video
helix_on_twitch Hook me up when im online, too much tech for me. good job kboqing it though
if you run into “tmi.client is not a constructor” then you probably installed the wrong package. “npm i tmi.js –save” is how you install