Twitch Chat Bot Tutorial - Create & Deploy with node.js, tmi.js, & Heroku

Опубликовано: 23 Март 2021
на канале: Colby Fayock
23,733
418

Learn how to create and deploy a Twitch chat bot using node.js and Heroku. We'll walk through:
Creating a node.js project from scratch with npm init
Installing and configuring tmi.js to listen to Twitch chat messages
Authenticating a Twitch account to send messages with tmi.js
Parsing Twitch chat messages for commands
Deploying a node.js Twitch chat bot to Heroku

🧐 What's Inside
00:00 Intro to Creating a Twitch Chat Bot
00:30 What tools will we use?
01:20 Starting a node.js app from scratch with npm init
02:58 Using tmi.js to listen to Twitch chat messages
04:50 Testing the chat app on a Twitch stream
06:16 Authenticating a Twitch account to send messages with tmi.js
08:45 Using environment variables with dotenv to store sensitive data
10:34 Sending a response to a Twitch chat from a bot user
12:10 Listening for and parsing chat commands with regexp
15:25 Creating a map of responses to respond to commands with
19:01 Deploying the Twitch chat bot to Heroku
22:18 Adding a Procfile and configuring a Heroku worker dyno
23:50 Testing the deployed Twitch chat bot
24:48 Outro

🗒️ Read More
https://spacejelly.dev/posts/how-to-c...

🔔 Subscribe for more tech and developer videos
https://www.youtube.com/colbyfayock?s...

🐦 Get updates straight to your Twitter @colbyfayock
  / colbyfayock  

📸 Catch the next stream live on Twitch @colbyfayock
  / colbyfayock  

✉️ Or a newsletter right to your inbox!
https://www.colbyfayock.com/newsletter/

💝 Sponsor me for more free content like this!
https://github.com/sponsors/colbyfayock

👨‍🚀 Brought to by colbyfayock.com
https://www.colbyfayock.com

🎥 Want to know what A/V equipment I use?
https://www.colbyfayock.com/what-i-use

🧰 More Resources

tmi.js
https://tmijs.com/

Heroku
https://www.heroku.com/

🎼 Music

Music from Uppbeat (free for Creators!):
https://uppbeat.io/t/mountaineer/good...
License code: XS1OLTHIOZ86SRIS

#colbyfayock #twitchbot #nodejs #heroku #twitch #twitchchat #webdevelopment