A simple Cards Against Humanity bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Juhani Krekelä 7403e4f1af Update o3-base 2 years ago
.gitignore Read config from a configuration file 6 years ago
CC0 Use the CC0 file 5 years ago
README.md Thanks Shikhin 5 years ago
bot.conf.example Update o3-base 2 years ago
botcmd.py Update o3-base 2 years ago
cardcast_api.py Remove cardcast namespace in favour of ahti namespace 4 years ago
channel.py Add support for closing the channel 6 years ago
constants.py Log connection attempts to server 2 years ago
cron.py Add ping timeouting 6 years ago
dump_deck.py Allow dump_deck.py to use non-cardcast API endpoints 3 years ago
gameloop.py Update colondeck's location 2 years ago
ircbot.py Flush log output after each line in case output is buffered 2 years ago
line_handling.py Only pass bytestrings (and not bytearrays) to user code 6 years ago
random_deck.py First commit (of the CaH bot) 5 years ago

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.