A simple Cards Against Humanity bot
Go to file
Juhani Krekelä 396b3c0185 Ignore leave-events from ppl not in the game.
Since leave-event was hooked up into ppl quiting and parting from the
channel as well as doing !leave, the message telling ppl were not in the
game would get triggered unintentionally.
2019-05-14 22:00:06 +03:00
.gitignore Read config from a configuration file 2018-01-03 18:08:24 +02:00
CC0 Documentation 2019-05-06 11:12:55 +03:00
README.md Thanks Shikhin 2019-05-06 18:14:29 +03:00
bot.conf.example Start integrating gameloop.py into the bot 2019-05-06 12:41:12 +03:00
botcmd.py Add support for a random pick from a selection of cards 2019-05-13 22:57:21 +03:00
cardcast_api.py Add :Deck support 2019-05-10 18:01:05 +03:00
channel.py Add support for closing the channel 2018-03-30 23:14:24 +03:00
constants.py Add API.set_nick, .set_channels, .log 2018-02-25 21:03:05 +02:00
cron.py Add ping timeouting 2017-12-10 17:43:39 +02:00
dump_deck.py First commit (of the CaH bot) 2019-05-05 23:39:50 +03:00
gameloop.py Ignore leave-events from ppl not in the game. 2019-05-14 22:00:06 +03:00
ircbot.py Add irc.quit() 2018-08-19 19:52:42 +03:00
line_handling.py Only pass bytestrings (and not bytearrays) to user code 2018-06-14 10:50:30 +03:00
random_deck.py First commit (of the CaH bot) 2019-05-05 23:39:50 +03:00

README.md

TeA CaH

TeA is a simple Cards Against Humanity bot for IRC. It is based on o3-base.

Name

For the time being it stands for tāsh-e-ākramak 'aggressive cards', but if a better Hindi / Urdu name cames along, I'll change it. A previous CAH bot in our channel was called CardsAgainstIRC, shortened CaI. I always read it as "chai", so I thought naming this one in Hindi but having it shorted to "tea" made sense.

Thanks to Shikhin for tāsh-e-ākramak.

Using

Copy bot.conf.example to bot.conf and run python3 ircbot.py. You can also test the game logic by doing python3 gameloop.py directly.

dump_deck.py and random_deck.py are stand-alone toola for interacting with Cardcast API. They use cardcast_api.py to do the requests.

License

Everything in this repo is under CC0.