Skip to content

Latest commit

 

History

History
42 lines (42 loc) · 1.88 KB

README.md

File metadata and controls

42 lines (42 loc) · 1.88 KB

Twitch Bot

This is a Twitch bot built using tmi.js that interacts with viewers through chat commands and responds to events like follows and subscriptions.

Features

  • Responds to chat commands:
    • !discord or !dc: Provides a link to the Discord server.
    • !website or !web: Provides a link to the website.
    • !socials: Provides links to social media accounts.
    • !help or !commands: Lists available commands.
  • Sends a periodic message to join the Discord server.
  • Responds to follow and subscription events with a thank you message.

Getting Started

Prerequisites

  • Node.js (version 10 or higher)
  • pnpm

Installation

  1. Clone the repository:

     git clone https://github.com/OnThePixel-net/twitch-bot.git
     cd twitch-bot
    
  2. Install dependencies:

     pnpm install
    
  3. Create a .env file in the root directory and add your Twitch credentials:

     USERNAME=your_twitch_username
     OAUTH_TOKEN=your_oauth_token
    

    Get the OAuth Token here: https://twitchapps.com

Running the Bot

Start the bot with the following command:

pnpm start