This is a bot I created to make it easier to retrieve medal info, remind your server about lux or Union Cross times, and posting updates from Twitter for either the NA or JP version of KHUx. This was made using the libraries Javacord by BtoBastian, JSoup, Emoji-Java by vdurmont, and Gson by Google, with extreme thanks to Rosie for her amazing website khuxtracker.com which I use for the searching algorithm and database.
Important: I have terminated service for the bot. See here for my response. I will leave this section here for archival (and potentially revival) purposes.
Click here to have my hosted instance of the bot join your server (You must be a server admin to do such). Note that any channels that the bot will post in will need permission both to post plain text and embedded message.
There are a few commands you can use to help to prepare yourself. They are as listed:
To get the details of any medal in your default game, use the !medal command:
!medal [medal name/nickname]
If you don't know a medal's full name, type a portion of its name and a list of suggestions will appear like such:
From here, just click or tap on the number that corresponds with the medal you want, and it will display its stats as such:
To change the default game that !medal pulls from, use:
!default [NA/JP]
You can also use !medalna or !medaljp if you don't want to change your default game. Note that !default will also change the lux times for the !lux command.
To automatically grab the latest updates from Twitter, go to the channel of your choice and do:
!tweet [on/off/get/status]
!tweet get can also be used to grab the latest Tweet.
To automatically remind party members of double lux times during raid events, go to your desired channel and do the following:
!lux [on/off/status/check] (na/jp)
This will send both a notice that double lux has started and one for when it has ended. It will work regardless of time zones, set at 3-4am/pm and 9-10am/pm GMT/UTC. The reminder message is editable in the config. Running check will tell you how long until the next bonus time.
You can also have the bot remind you up to 30 minutes before double lux has started. To do that, use
!lux remind [minutes]
Similar to !lux
, this command will allow you to remind the server of when the Union Cross bonus times are active.
!ux [on/off/status/check] (na/jp)
Running check will tell you how long until the next bonus time.
You can also use this to set a reminder up to 30 minutes before:
!ux remind [minutes]
Some commands are administrative, so use this command to set admins for your server to keep everything under control:
!admin @[user] @[another user] ...
Note: If no one has yet been registered as an admin, any server administrator will be able to register admins with this command. This only grants admins to using the bot, and does not affect server administration.
Use this to remove admin privilages from the troublmakers:
!unadmin @[user] @[another user] ...
Let's face it. This game is pretty salty. Simply run !salt
to let all servers know that you're mad! Running it will simply increase a global counter by one.
To reload the config data, use !config. This is helpful for loading the lux reminder message when edited.
Use this to view the stats of any Keyblade at any level! It'll display all the slots available for that Keyblade, including its attribute, type, and each multiplier.
!keyblade [keyblade name] (level)
Omiting level will simply display the max level stats.
You can also view all of the commands and their usage by running !help.
If you just want to have this bot running on your server and nothing else, have your server owner or moderator join the bot to your server through this link.
If you wish to run your own personal host, the easiest way to install is to use Docker and use the public Docker image. It is reccommended that you use Linux as Windows may cause some weirdness.
In order to run an instance of the bot, you must have a created bot account through the Discord Developer Portal. Once created, grab your bot's API token under the Bot tab. To link this with the program, run the following command: echo "<bot token>" | docker secret create discord-api-token -
.
Now the container may be launched:
curl -o docker-compose.yml https://raw.githubusercontent.com/xlash123/KHUx-Discord-Bot/master/xlash.bot.khux/docker-compose.yml
docker stack deploy -c docker-compose.yml khux
You may alternatively use docker-compose up
for the last command.
You also may alternatively use docker run
, but you must supply all the necessary arguments to ensure the container knows its Discord API token. Take a look at the Docker compose file for insight.
Any bugs, suggestions, or questions can be posted as an issue. I'll respond to anything I get.