L04DB4L4NC3R / chutkula-bot

[NSFW] A telegram bot to send jokes daily and on demand

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chutkula Bot

A telegram bot to send jokes daily and on demand [NSFW]


Features

  • Pluggable feeds, ie you can use it for any feed you want
  • Ability to fetch from the RSS feed of multiple subreddits
  • Time sync, so you always get the most latest feed
  • Random emoji injector
  • Scheduled Cron
  • Register and Unregister from updates
  • Photographic memes and written jokes parity

Screenshot

---

Instructions to run

  • Set up .env using the .env.example provided in this repo.

  • Which subreddits to serve depend on the env

  • Run natively:

go build -o ./bin/chutkulabot main.go

./bin/chutkulabot
  • Run in a container using docker
docker image build -f Containerfile -t chutkulabot .

docker container run --name chutkula -d chutkulabot
  • Run in a container using podman
podman image build -t chutkulabot .

podman container run --name chutkula -d chutkulabot

Bot Usage

Command Description
/hi Greet the bot
/register The first command you should run. Registers you for receiving joke updates and synced jokes every 6 hours
/jokes Get jokes based on the last fetch timestamp (ensures uniqueness)
/time Get last updated at timestamp
/lol Get jokes not based on the last fetch timestamp
/unregister Unregister from the 6 hourly updates. Not recommended for /jokes
/sorry View apology message
/caughtup View caught up message

Made with ❤️ by Angad Sharma

About

[NSFW] A telegram bot to send jokes daily and on demand


Languages

Language:Go 96.2%Language:Makefile 3.2%Language:Shell 0.6%