Coder Social home page Coder Social logo

twitch-chat-bot's Introduction

Twitch Live-Chat Bot

Chatbot for Twitch

Support me

I invest a lot of resources into creating best in class open source packages. You can support me by buying one of my paid products.

I highly appreciate you sending us a postcard from your hometown, mentioning which of my prpjects you are using. You'll find my address on my contact page. I publish all received postcards on my virtual postcard wall.

Note

This section is inspired by my friends at Spatie.

Installation

Clone the project

  git clone https://github.com/fwartner/twitch-chat-bot.git

Go to the project directory

  cd live-chat-bot

Install dependencies

  npm install

Start the server

  npm run start

Configuration

To get the chatbot working you'll need to obtain an oauth token for the user which is impersonated by the chatbot. I suggest using https://twitchapps.com/tmi.

NOTE: Only the part behind oauth: is needed for the configuration.

Create your local .env file by copying the .env.example:

cp .env.example .env

Fill out the required field:

  • TWITCH_USERNAME: The username for the chatbot
  • TWITCH_OAUTH: The key you just obtained from twitchapps.com
  • TWITCH_CHANNEL: The channel on Twitch you want to interact with
  • WEBSITE: Your website

Bad Word Filtering

The chatbot can also filter and automatically delete words or messages.

To add words that will be filtered by the bot simply edit the src/constants.js file:

...
export const BLOCKED_WORDS = [
    'hiphop', // Add more words here..
]
...

Deploy to Heroku

Deploy

twitch-chat-bot's People

Contributors

fwartner avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.