- Make sure you have at least Node v20.
$ node --version
v20.12.0
You can get Node from https://nodejs.org.
- Clone this repository.
$ git clone https://github.com/judwhite/tmijs-no-emotes.git
- Run
npm install
.
$ npm i
- Edit the
.env
file to set your bot's name, IRC OAuth token, and channel name. Editapp.js
to customize other things. Try addingconsole.log(tags)
to see thetags
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=...
- Run the bot with the
.env
file.
$ node --env-file=.env app.js
Happy hacking.