Skip to content

kritzl/TwitchHausGeist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitchHausGeist

This Twitch Bot offers two different usages.

Vote Bot

Checks every chat message for the following beginnings:

results in trigger
neutral +- -+ +/- -/+ haugeNeut
plus + haugePlus
minus - haugeMinu

Posts an interim result every 20 seconds and an end result after 5 seconds of no additional votes.

Checks if more than 10 votes have been added before posting any result.

Pipi Bot

Offers four commands to count the number of chat users who need to go to the toilet.

!pipi -> To mention, that you need to go to the toilet
!warpipi -> To mention, that you have been to the toilet before a break was announced
!zuspät -> Mention, that is now too late, and you had an accident
!pipimeter -> Get the current count of users that need to go to toilet
!pause -> Announce a break and reset the counter
!reset -> Resets all pipi-votes

Installation

Clone this repository, create a venv and install dependencies using pip and the requirements.txt

Configuration

Configuration of this bot is done by a .env file that is placed in the same directory as the hausgeist.py file. This file must look like this:

# General
IRC_TOKEN=<OAuth Token to be used for login. Can be generated by using https://twitchapps.com/tmi/>
NICK=<Nick of the user the OAuth Token was generated for>
CHANNEL=<Channel that should be entered>
PREFIX=<Prefix for commands. In this case it is !>

# Pipi Bot
PIPI_DELAY=<Delay in seconds as spam protection. This is the number of seconds between two chat announcements>
PIPI_THRESHOLD_1=<First Threshold. Used to change color and show, it is a bit more urgent>
PIPI_THRESHOLD_2=<Second Threshold. Used to change color and show, that it is really urgent>
PIPI_COLOR_0=<Neutral color used for !pause command, and if pipi vote counter is 0>
PIPI_COLOR_1=<Color used when pipi vote is at least one, and less than PIPI_THRESHOLD_1>
PIPI_COLOR_2=<Color used when pipi vote is at least PIPI_THRESHOLD_1, and less than PIPI_THRESHOLD_2>
PIPI_COLOR_3=<Color used when pipi vote is above PIPI_THRESHOLD_3>

# Vote Bot
VOTE_DELAY_END=<Number of seconds withoug a vote getting count. If this delay is reached, the vote is closed.>
VOTE_DELAY_INTERIM=<Number of seconds between two announcements of the current vote count.>
VOTE_MIN_VOTES=<Number of votes to be announced at all. A vote with less users votings will not be announced at all.>
VOTE_COLOR=<Chat Color that is used to announce voting results>
VOTE_PLUS=<Positive Chate Emote>
VOTE_MINUS=<Negative Chat Emote>
VOTE_NEUTRAL=<Neutral Chat Emote>

# Redis Server
REDIS_HOST=<IP of the Redis-Server>
REDIS_PORT=<Port of the Redis-Server>
REDIS_DB=<Index of the Database>
REDIS_PW=<Password for the Redis-Server>

About

"HausGeist" Bot for Twitch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%