A simple Cards Against Humanity bot
Find a file
2024-07-10 22:31:46 +03:00
.gitignore Read config from a configuration file 2018-01-03 18:08:24 +02:00
bot.conf.example Update o3-base 2022-03-23 20:47:07 +02:00
botcmd.py Update o3-base 2022-03-23 20:47:07 +02:00
cardcast_api.py Remove cardcast namespace in favour of ahti namespace 2020-06-03 02:07:13 +03:00
CC0 Use the CC0 file 2019-05-11 14:37:22 +03:00
channel.py Add support for closing the channel 2018-03-30 23:14:24 +03:00
constants.py Log connection attempts to server 2021-12-12 16:45:52 +02:00
cron.py Add ping timeouting 2017-12-10 17:43:39 +02:00
dump_deck.py Allow dump_deck.py to use non-cardcast API endpoints 2020-07-20 22:34:40 +03:00
gameloop.py Offtopiadeck lives again 2024-07-10 22:31:46 +03:00
ircbot.py Flush log output after each line in case output is buffered 2021-12-12 17:07:00 +02: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 Thanks Shikhin 2019-05-06 18:14:29 +03:00

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.