mirror of
https://github.com/danbooru/fumimi-discord.git
synced 2026-11-17 02:58:03 -03:00
Discord bot for Danbooru.
- Ruby 99.7%
- Dockerfile 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Set Fumimi's user agent to "Fumimi (+https://github.com/danbooru/fumimi-discord)" and allow overriding it with FUMIMI_USER_AGENT. |
||
| .devcontainer | ||
| .github/workflows | ||
| .vscode | ||
| bin | ||
| lib | ||
| test | ||
| .editorconfig | ||
| .env.example | ||
| .gitignore | ||
| .rubocop.yml | ||
| .ruby-version | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE.txt | ||
| Rakefile | ||
| README.md | ||
Fumimi
Fumimi is a Danbooru Discord bot. It can be seen at work in the official Danbooru discord.
Installation
1. Discord Bot Creation
- Go to https://discordapp.com/developers/applications/me
- Click 'New App'
- Choose an app name.
- Note your client ID and client secret.
- Add a bot user.
- Save your bot token.
- Enable the "Message Content Intent" under Overview > Bot > Privileged Gateway Intents.
- Invite bot to server.
2. Configure Your Credentials
- Clone this repository:
git clone https://github.com/danbooru/fumimi-discord.git - Configure
.envfrom.env.example:- b. Set
DISCORD_CLIENT_IDto your bot's application ID. - c. Set
DISCORD_TOKENto your bot's API token.
- b. Set
3a. Run with Docker
- Run
docker compose up.
3b. Run manually
- Run
bundle install - 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.