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:
!discordor!dc: Provides a link to the Discord server.!websiteor!web: Provides a link to the website.!socials: Provides links to social media accounts.!helpor!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-botInstall dependencies:
pnpm installCreate a
.envfile in the root directory and add your Twitch credentials:USERNAME=your_twitch_username OAUTH_TOKEN=your_oauth_tokenGet the OAuth Token here: https://twitchapps.com
Start the bot with the following command:
pnpm start