Releases: FlorianSW/cftools-discord
Releases · FlorianSW/cftools-discord
Fix cftools-sdk player lookup function
This is a dependency update release only. The updated dependency is ``cftools-sdk`, see the release notes here: https://github.com/FlorianSW/cftools-sdk/releases/tag/v1.8.1
v2.0.0-alpha1
Changes
New features
I'm pleased to announce the availability of the following new functionality within the cftools-discord bot:
- The bot will now exclusively provide discord slash commands for users to interact with it
- Features that were related to the non-slash commands version of this bot were removed, see the below migration guide
- With the move to slash commands, users now do not need to mention the bot anymore (#11)
Other changes
- The
help
command is removed (the contents of it now resides in the descriptions of the registered commands of the bot) - The feature to limit the use of the bot to specific channels was removed (the related config property
channels
was removed as well) - The feature to limit the use of a specific command for a specific server to a list of roles was removed (use the permissions to use slash commands for a Discord role instead)
- The backward compatibility config property
discordToken
was removed (use the propertydiscord.token
instead, it serves as a replacement)
Update notes (+ Migration guide)
In order to update to this release, follow these steps:
- Ensure you have NodeJS version 17.6 or higher installed. You can check that by running
node -v
in your command line window. If it is not a supported version, first upgrade NodeJS before continuing to upgrade the Donation tool. If you do not update NodeJS first, the donation tool will not start and bring your donation website offline! - Download the source code of this release (either with a
git pull
to the tag or by downloading the zip file from this page) - Run
npm ci
to update the required dependencies
Migration steps
- Check the updated
config.example.json
as a reference - You need to move your
commandMapping
config to the newcommands
config. This should be as easy as replacing the key of the object with the command name (in all lowercase) and replacing the string values of the object to empty objects ({}
) - Move the
config
of a single command "up", e.g. a leaderboard config like:
"leaderboard": {
"command": "leaderboard",
"config": {
"defaultStat": "kills",
"allowedStats": [
"kills"
]
}
}
becomes:
"leaderboard": {
"defaultStat": "kills",
"allowedStats": [
"kills"
]
}
- Make sure that the discord app, which token you use, has the permission
application.commands
. If it does not, or you are not sure, grant the app this permission again using the discord developer portal.