Comic-Bot is a simple bot to interact with your favorite web comic.
It has very limited capabilities and only supports Xkcd comic.
Get Bot Token by following instruction in Telegram Website
There are 2 ways to start:
- Run
clj -M:main $TELEGRAM_BOT_TOKEN
in shell where TELEGRAM_BOT_TOKEN is Telegram Bot API key. - Alternative: set enviroment variable TELEGRAM_BOT_TOKEN with Telegram Bot API key then run
clj -M:main
.
Try interacting with bot by send chat message to contact ComicBot in Telegram:
/hi
to see welcome message/latest
to get latest Xkcd comic strip
- Comic-Bot uses clj-http to poll any new recognized message and respond accordingly.
- Test runner uses kaocha. Run all test by
bin/kaocha
.
- Print bot status
- reply message/picture asynchronously
- add tests
Xkcd is owned by Randall Munroe.