This is a Twitch bot built using tmi.js that interacts with viewers through chat commands and responds to events like follows and subscriptions.
- 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.
- Node.js (version 10 or higher)
- pnpm
Clone the repository:
git clone https://github.com/OnThePixel-net/twitch-bot.git cd twitch-bot
Install dependencies:
pnpm install
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
Start the bot with the following command:
pnpm start