judwhite / tmijs-no-emotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmijs-no-emotes

  1. Make sure you have at least Node v20.
$ node --version
v20.12.0

You can get Node from https://nodejs.org.

  1. Clone this repository.
$ git clone https://github.com/judwhite/tmijs-no-emotes.git
  1. Run npm install.
$ npm i
  1. Edit the .env file to set your bot's name, IRC OAuth token, and channel name. Edit app.js to customize other things. Try adding console.log(tags) to see the tags object, it includes things like sub info, broadcaster, mod, VIP, and so on.

IRC_OAUTH_TOKEN must have double quotes and start with "oauth:".

BOT_NAME=...
IRC_OAUTH_TOKEN="oauth:..."
CHANNEL_NAME=...
  1. Run the bot with the .env file.
$ node --env-file=.env app.js

Happy hacking.

About


Languages

Language:JavaScript 100.0%