Releases: moonstar-x/discord-tts-bot
v4.0.0
This release corresponds to the version 4.0.0 of the bot. For more information checkout the README.
Changelog
This is a breaking change. Make sure you remove your node_modules
folder and reinstall the dependencies, as well as reconfigure your bot with the correct and updated environment variables and/or settings.json
file.
- Improved Docker build to keep older versions.
- Updated to
discord.js@13
. - Node >=16.6 is now required.
- Fixed a bug where the disconnect timeout could be bypassed by moving the bot to another channel.
- Fixed a bug where the bot would say the ID of a mention instead of the name associated, now user, role and channel mentions as well as guild emojis will be read by their names.
- Commands are now slash commands. Trying to use the old commands with the prefix will send a deprecation warning and will not execute the command.
- Added a command deploy script. This is necessary to run once when setting up and updating your bot.
- Added a start-sharded script. You may need to start the bot with multiple shards if your bot is in a big number of servers (around 2000).
- Added data persistence through a LevelDB or Redis database. You can configure this with the config JSON file or environment variables.
- Server members can now have their own default configuration to use the say command.
- Added a custom disconnect timeout per guild. You can configure this with the
set_timeout
command. You can set the disconnect timeout between 5 and 300 minutes. - Renamed DISCONNET_TIMEOUT to DEFAULT_DISCONNECT_TIMEOUT since now it represents the default disconnect timeout value in case a guild has not set up theirs.
- Added localization to the bot. You can set the language the bot should use with the
set_locale
command. Current languages supported: English, Spanish and French. Some text cannot be translated (such as command descriptions) due to technical limitations. - Added the ability to use certain channels as message-only tts channels. Meaning, any message sent to that channel will be read out by the bot when running with no command. You can enable this by setting ENABLE_TTS_CHANNELS to true and adding a channel provider with the
set_channel_provider
command. - Revamped commands to better suit for multiple TTS providers. This includes:
- New commands to set and view the default provider for the command author or for the server defaults.
- New commands to configure each provider for the command author or for the server defaults (if applies).
- Say command now uses the command author's settings (or the server defaults if they do not have their own saved) instead of using GoogleTTS.
- GoogleTTS can be used specifically by running
google_say
command. - AeiouTTS can be used specifically by running
aeiou_say
command. - Added commands for message-only tts, enabled only when ENABLE_TTS_CHANNELS is set to true.
v3.0.3
v3.0.2
This release corresponds to the version 3.0.2 of the bot. For more information checkout the README.
This may be a breaking change if you configure your bot using environment variables rather than config file.
Changelog
- Removed unnecesary files from the Docker image.
- Removed the volume directive from Dockerfile to avoid auto creating an unused volume.
v3.0.1
This release corresponds to the version 3.0.1 of the bot. For more information checkout the README.
This may be a breaking change if you configure your bot using environment variables rather than config file.
Changelog
- The Docker image would not work properly if not all environment variables were specified. The defaults would be overriden by the Dockerfile.
- The owner ID would be casted to an unsafe integer which would give off the wrong ID.
v3.0.0
This release corresponds to the version 3.0.0 of the bot. For more information checkout the README.
This may be a breaking change if you configure your bot using environment variables rather than config file.
Changelog
- Rewrote the bot with discord.js-extended.
- Refactored the TTSPlayer and separated TTS sources into their own provider classes.
- Added aliases to certain commands (like
say
,stop
andhelp
). - Removed the hardcoded embed for the langs command.
- Fixed a bug where the bot would not say anything if spawned into the channel with the
aeiou
command. - Added a timer for the bot to disconnect from a channel if inactive.
- Added a presence rotation feature.
- Added the ability to send the bot's owner the error reporting when a command reaches an error.
v2.0.1
This release corresponds to the version 2.0.1 of the bot. For more information checkout the README.
This may be a breaking change if you configure your bot using environment variables rather than config file.
Changelog
- Changed PREFIX environment variable to BOT_PREFIX in order to fix the wrong prefix being used on systems like Heroku.