Nitro4All is a Discord bot which allows all users to use Nitro (animated) emojis.
It will react to any message containing a Nitro-only emoji from a user who does not have Nitro with the emoji itself.
Nito4All only works with Nitro emojis from the server in which the message it is reacting to had been sent.
- Drop-in functionality (no configuration needed, just invite and go)
- Doesn't require any special syntax (uses normal Discord emoji syntax)
- Allows users to still use the built-in Discord emoji selection features
- Requires minimal permissions
Nitro4All requires the following permissions:
Send Messages
- for sending messages in response to commands (see below)Add Reactions
- for adding animated reactions to messages (core functionality)Read Message History
- necessary in order for adding reactions to function properly. Without this, the bot cannot see the message it needs to react to.
Since users without Nitro cannot use Nitro emojis directly, they may sometimes get messages from the built-in Discord bot named "Clyde". There is no way to disable this.
Due to limitations of the Discord4J bot library, in order for Nitro4All to properly check if a user has Nitro, all Nitro users in the server must be a member of the default, Discord managed Nitro Booster
role.
These commands are only available to users who have Administrator permissions.
/n4a ping
- Pings Nitro4All, which will respond withPong!
if it is online./n4a nitrocheck toggle
- Toggles checking if a user is Nitro before deciding to potentially react to the user's message. This option effectively allows Nitro4All to react to users who are Nitro already as well as normal users if it is set tofalse
./n4a enabled toggle
- Toggles whether the bot is enabled.
Nitro4All can be run directly from Maven without the need to build a JAR using the Exec Maven Plugin. This method is most convenient for local testing.
To run Nitro4All with this plugin, you must have the following dependencies installed:
- JDK 13
- Maven You can run the bot as follows:
- Run the bot with the
exec:java
command including your Discord token:
DISCORD_TOKEN=<TOKEN> mvn exec:java
To run Nitro4All with Maven you must have the following dependencies installed:
- JDK 13
- Maven
You can run the bot as follows:
- Build the JAR:
mvn clean install
- Run the JAR including your Discord token:
DISCORD_TOKEN=<TOKEN> java -jar target/nitro4all-1.0-SNAPSHOT-fat.jar
- Note: the
DISCORD_TOKEN
environment variable must be set appropriately before running the JAR.
To run Nitro4All with Docker you must have the following dependencies installed:
- Docker
You can run the bot as follows:
- Create an
.env
file with the required environment variables which are: - The tag for the image that Docker Compose should use (equivalent to
docker pull jswny/nitro4all:${TAG}
) - Your Discord token.
TAG=latest
DISCORD_TOKEN=<TOKEN>
- Note: you can also pass these in manually from the command line the same way as shown for previous run configurations.
- Bring the bot up with Docker Compose:
docker-compose up -d