Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gpduck/twitchbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running

  1. Install node
  2. Clone the repo locally
  3. Install package dependencies
    npm install
    
  4. Get an oauth token for the bot from twitchapps
  5. Configure environment variables (powershell)
    $env:TTV_USERNAME = "your username"
    $env:TTV_PASSWORD = "oauth:token"
    $env:TTV_CHANNEL = "your channel"
    
  6. Run the bot
    npx ts-node src/index.ts
    

Pictionary Bot

Install and configure as above, run as follows

npx ts-node src/pictionarybot.ts WORD

The bot will connect to the channel and watch for the first person to say WORD. It will then announce the winner in the channel, print the winner to the console, and exit.

Console:

npx ts-node .\src\pictionarybot.ts word
Listening for 'word' on channel
gpduck is the winner with word

Chat:

gpduck: word
gpduckbot: gpduck is the winner! The word was 'word'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published