my ghost in the shell
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
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
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
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
- be the streamer or @bison_42
- type !kill in the chat
- ...
- profit!
ask the 8-ball
cool down is hard coded to 30 seconds, masters and submasters are free from this limitation
!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}
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 thegivAways.txt
.- The used key gets a
#
on the beginning of its line.
- The used key gets a
!wantyougone
removes all unlycky users from the!want
list.
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
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
The bot can greet users, add OR change a greeting text with:
!addGreeting merover * everyone is a hamster!
!addGreeting
adds OR changes a greeting- Parameter: the Username (ALWAYS lowercase without @ !)
- Parameter: a simple command that triggers the greeting
- use * for the default greeting detection
- CANT have spaces
- MUST be one word
- IS case sensitive!
- Parameter: the greeting text
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
Access various lists.
!!list masters
!!list submasters
!!list dynamiccommands
!!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 @