Discord bot for Danbooru.
  • Ruby 99.7%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
evazion 47826724e9 Add FUMIMI_USER_AGENT option for setting the HTTP User-Agent.
Set Fumimi's user agent to "Fumimi (+https://github.com/danbooru/fumimi-discord)" and allow
overriding it with FUMIMI_USER_AGENT.
2026-11-11 14:34:31 -06:00
.devcontainer dev: add editorconfig file. 2026-04-21 09:13:48 -05:00
.github/workflows Fix tests failing in CI because of missing config. 2026-04-29 08:37:50 -05:00
.vscode dev: add debugging support. 2026-04-22 16:39:36 -05:00
bin Refactor Fumimi class into Fumimi::Bot. 2026-04-29 01:47:12 -05:00
lib Add FUMIMI_USER_AGENT option for setting the HTTP User-Agent. 2026-11-11 14:34:31 -06:00
test /searches: add more stats. 2026-05-11 00:58:53 -05:00
.editorconfig Fix some rubocop lint warnings. 2026-04-23 01:27:34 -05:00
.env.example Add FUMIMI_USER_AGENT option for setting the HTTP User-Agent. 2026-11-11 14:34:31 -06:00
.gitignore Fix current year not being available on reports during the early part of the year 2026-03-20 12:05:45 +01:00
.rubocop.yml Enable frozen string literals by default. 2026-04-27 14:05:53 -05:00
.ruby-version Update dependencies & ruby version 2026-09-13 14:30:39 +00:00
docker-compose.yml Enable debugger only when running bin/fumimi in development mode. 2026-05-05 18:00:30 -05:00
Dockerfile Update dependencies & ruby version 2026-09-13 14:30:39 +00:00
Gemfile Add sockpuppet monitor. 2026-05-06 16:11:55 -05:00
Gemfile.lock Update dependencies & ruby version 2026-09-13 14:30:39 +00:00
LICENSE.txt Initial commit. 2017-05-06 10:29:02 -05:00
Rakefile Add bin/minitest command. 2026-04-28 01:09:58 -05:00
README.md Replace DISCORD_REPORT_CHANNEL_NAME with DISCORD_REPORT_CHANNEL_ID. 2026-05-04 22:12:11 -05:00

Fumimi

Fumimi is a Danbooru Discord bot. It can be seen at work in the official Danbooru discord.

Installation

1. Discord Bot Creation

  1. Go to https://discordapp.com/developers/applications/me
  2. Click 'New App'
  3. Choose an app name.
  4. Note your client ID and client secret.
  5. Add a bot user.
  6. Save your bot token.
  7. Enable the "Message Content Intent" under Overview > Bot > Privileged Gateway Intents.
  8. Invite bot to server.

2. Configure Your Credentials

  1. Clone this repository: git clone https://github.com/danbooru/fumimi-discord.git
  2. Configure .env from .env.example:
    • b. Set DISCORD_CLIENT_ID to your bot's application ID.
    • c. Set DISCORD_TOKEN to your bot's API token.

3a. Run with Docker

  1. Run docker compose up.

3b. Run manually

  1. Run bundle install
  2. Run bin/fumimi

Usage

Use /help on a server the bot is configured on for a list of commands.

Development

After cloning this repo, run bundle install to install dependencies.

To open a dev console, use bin/console. To run the tests, use minitest or minitest test/<file.rb>.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/danbooru/fumimi-discord.

License

This bot is available as open source under the terms of the MIT License.