Otaku Bot is a fun Slack bot built in Go that delivers random inspirational, funny, or emotional anime quotes directly into your Slack channels โ complete with character names, anime titles, and even anime poster images via the Kitsu API.
Example output from the
/animequote
command:
- โก๏ธ Slash command:
/animequote
- ๐ญ Random anime quotes via AnimeChan API
- ๐ผ๏ธ Anime cover images fetched from Kitsu API
- ๐ฌ Nicely formatted message using Slack Block Kit
git clone https://github.com/yash-death/otaku-bot.git
cd otaku-bot
Create a .env
file in the root directory:
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-level-token
You can get these from your Slack App dashboard.
go mod tidy
go run main.go
The bot will connect using Slack Socket Mode and post quotes using the
/animequote
command.
.
โโโ main.go # Entry point
โโโ commands/
โ โโโ animequote.go # Quote command logic
โโโ utils/
โ โโโ kitsu.go # Anime image fetcher (Kitsu API)
โโโ .env # Environment variables
- ๐ Slack interactive buttons (
Refresh
,Save
,More Info
) - ๐๏ธ Quote history storage (JSON or DB)
- ๐ Karma system (upvote/downvote anime)
- ๐ง Slash command autocomplete
Pull requests are welcome! If you have ideas for fun features, feel free to open an issue or submit a PR.
MIT License
Made with โค๏ธ by Yash Badoniya