Skip to content

HackerShackOfficial/hackershack-livestream-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackershack-livestream-chatbot

Code for the Hacker Shack livestream chatbot

Running locally

Make sure you've set the following environment variables:

# youtube
YOUTUBE_CHAT_CLIENT_ID
YOUTUBE_CHAT_CLIENT_SECRET

#twitch
TWITCH_BOT_KEY

You can find these values in the Twitch/Youtube chatbot documentation.

Run the following commands in the project root:

npm install
node src/index.js

Visit localhost:3000 in the browser to login with Youtube.

Note:

  • You might have to restart the chatbot if you've logged in for the first time. The chatbot should persist oauth tokens so that you don't need to login every time.
  • If the Youtube stream doesn't start, you might have to create a live event

How to use the Chatbot

Type the following commands to talk to the bot:

Memes

Create a meme

Meme names can be found here

Type: !meme | meme_name | top_text | bottom_text

Example - !meme | success kid | this | works!

Show a meme on the livestream video

(Uses the same memes as the create meme command)

Type: !sm | meme_name | top_text | bottom_text

Example - !sm | success kid | this | works!

Polls

Create a poll

!makepoll | poll_question | option_1 | option_2

Vote for an option in the poll

!vote | option_1

End the current poll

!endpoll

View the poll and current options

!viewpoll

Get all HackerShack social media links

Type: !links

Roll a dice

Type: !dice

Donations

Thanks for the support!

  • Zachary Nawrocki: Love your videos. I've been working on a chat bot for my personal home assistant project, and these ideas have given me some inspiration. Thanks.

About

Code for the Hacker Shack livestream chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published