hlfbt / tmi-emote-bot

I_only_post_TwitchEmote

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missde5Sup

Wat it do

The bot only posts the one emote it is configured for. It replies to any mentions with the emote. It also greets all subs with the amount of months they (re)subbed! The bot can also periodically post the emote automatically.

The bot uses tmi.js to interface with twitch.

Installation

Simply run

npm install

to install all required NPM packages.

Running

To start the bot, just start the script with node

node emote_bot.js

Configuration

Copy config.js.dist to config.js and set values accordingly.

config.tmi_opts:

  • identity.username: your twitch username / the bots twitch username
  • identity.password: the oauth token for authorization
  • channels: an list of channels to join

config.bot_opts:

  • emote: the emote to post (f.i. VoHiYo or missde5Sup)
  • autoPost: whether to automatically periodically post the emote to all connected channels
  • autoPostDelay: the automatic posting interval delay in milliseconds
  • autoPostRngDelay: set to greater than 0 if the periodic interval delay should further be delayed by a random range of +/- autoPostRngDelay / 2
  • greetSubs: whether to greet (re-) subscriptions with as many emotes as months that they subscribed
  • replyMentions: whether to reply to any mentions with the emote
  • tierPrimePrefix, tier1000Prefix, tier2000Prefix, tier3000Prefix: Prefixes to add to sub greetings for each of the different sub tiers

TODOs

  • missde5Sup
  • only post automatically if the channel is live ✔️
  • the autopost code is probably crap it totally is ✔️
  • actually most of the code is crap yep ✔️
  • make bot config channel dependent with global defaults

About

I_only_post_TwitchEmote


Languages

Language:JavaScript 100.0%