Skip to content

bison--/tBot

Repository files navigation

my ghost in the shell

setup

This bot does not use the bot-api, it connects to the irc-server. Yes, twitch is using good old irc. That makes it fairly easy to create a bot.

  • creat an user account on twitch the bot should use (you probably dont want to use your account!).
  • go to: http://www.twitchapps.com/tmi/ create and grab your oauth token
  • edit the config.py according to your needs (the oauth token is your "password"!)
  • start the bot with python3 tBot.py
  • profit

user lists

To use the bouncer module with twitch ban lists, clone the repository https://github.com/isdsdataarchive/twitch_ban_lists .

cd data/userLists/
git clone https://github.com/isdsdataarchive/twitch_ban_lists.git

add a command

to add a command follow these steps:

  • be @bison_42 or the streamer (channel name)
  • type !!add then the new command (like !hype) and then the text you wanted to show
!!add !lol rofl die katz

then you can type

!lol

and the bot wil write to the chat:

rofl die katz

del a command

to remove a command follow these steps:

  • be @timkalation or @bison_42 or the streamer (channel name)
  • type !!del then the new command (like !hype)
!!del !lol

kill the ghost

  • be the streamer or @bison_42
  • type !kill in the chat
  • ...
  • profit!

8 ball

ask the 8-ball

cool down is hard coded to 30 seconds, masters and submasters are free from this limitation

commands

  • !8ball
    • gives a random element from the added fortunes
  • !8ball add TEXT
    • adds the fortune TEXT
  • !8ball remove TEXT
    • removes the fortune TEXT

examples

!8ball
!8ball add You shall not pass
!8ball add You shall not pass {username}
!8ball remove You shall not pass
!8ball remove You shall not pass {username}

give aways

Put your give away codes in givAways.txt.

  • !want A user who wants a key have to write !want to get in the requester list.
    • The user gets also a DM to test if anonymous DMs are open.
  • !wantsome or !whowantsome shows a list of all users who want a key and don't have one already.
  • !getsome picks a random user from the list and DMs a key from the givAways.txt.
    • The used key gets a # on the beginning of its line.
  • !wantyougone removes all unlycky users from the !want list.

bet module

in german (sorry ^^)

create a bet

!wetten !start nameOfTheBet

place a bet:

!wetten !das victory
!wetten !das loose 
!wetten !das 1:3

stop accepting new bets

!wetten !gilt nameOfTheBet

end the bet

!wetten !stop nameOfTheBet

match

The match-module is a simple list for things like "who plays against me first".

  • !match adds your username to the match list
  • !matchlist shows the current match list
  • !matchclear be timkalation or bison, clears the current match list

greeting

The bot can greet users, add OR change a greeting text with:

!addGreeting merover * everyone is a hamster!
  1. !addGreeting adds OR changes a greeting
  2. Parameter: the Username (ALWAYS lowercase without @ !)
  3. Parameter: a simple command that triggers the greeting
  • use * for the default greeting detection
  • CANT have spaces
  • MUST be one word
  • IS case sensitive!
  1. Parameter: the greeting text

submaster

add/remove sub masters
WARNING: case-sensitive!

  • !!submaster list shows all sub masters
  • !!submaster add someTwitchUser adds someTwitchUser as new sub master
  • !!submaster remove someTwitchUser removes someTwitchUser as sub masters

list

Access various lists.

  • !!list masters
  • !!list submasters
  • !!list dynamiccommands

other commands

  • !!masters list list masters
  • !silence activate/deactivate ALL chats from the bot
  • !takebluepill, !bluepill kills the short time memory / resets all timers for chat and interval messages
  • !rude add someTwitchUser adds a user to the RUDE list, he will be completely ignored. Username is case-sensitive AND without the @

About

simple twitch bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages