Repository navigation
SayehBot@1.6.0
This update contains 75 changes.
Breaking Changes
- Discord-player package has been updated from v5 to v6. All music related commands have been remade.
- Favorite playlist system has been completely remade. Users are no longer limited to have only 10 tracks in their playlist.
- Report system has been remade. Users are no longer limited to have only 1 open case at a time.
- New: Use /spank to spank anyone you want!
- New: Use /autoplay to enable autoplay for current queue. This feature will automatically play similar songs after the current song finishes playing.
- Music features now support Apple Music.
- Autocomplete feature is now enabled for some music related commands. This feature will suggest up to 5 results to user before executing the command.
Technical Changes
- Readme file has been rewritten to make it an easy and complete guide to install and develop the bot.
- Discord-player queue creation method has been changed.
Developer note: The "audioonly" filter has been added to ytdl filters so the target track would be lighter to play.
- If a voice channel become empty while the bot is playing, it will automatically disconnect and destroy the queue after 5 seconds.
- User is no longer able to report a same message which they have reported before when the case of it is still open.
- A lot of files have been changed to make them more briefly and smarter. Thus, volume of codes has been greatly reduced.
Developer note: A good example for this change could be "favorite.js" which has been reduced from 820 lines of code to only 485 lines. Or "wow.js" which has been reduced from 540 lines of code to 336 lines. Changes like this will make the bot work faster and smarter.
- Welcome system now works with 1 second delay to avoid message duplication.
Notification Changes
- Twitch and YouTube notifications now work with database completely.
- Birthday notification system has been changed to avoid any day check event being missed.
Developer note: Birthday system used to check every 24 hours to see if there is any birthdays for today or not. So there was a huge chance that a day would be missed. In the new update each day will be checked every 1 minutes to make sure there would be no missed days and also the birthday notification will now trigger a lot faster due to this change.
- Twitch notification message behavior has been changed. Title, category and viewer count of the message and status of the bot will be updated whenever those mentioned things are changed in live stream. Also, the image of message will no longer change after 4 hours, and it now changed whenever the live stream goes offline.
Security Changes
- .env file has been removed from GitHub due to security preposes.
- JSON folder and its content has been removed due to security preposes.
- The bot has been updated to use latest version of mongoose package to avoid any security problems.
- More API tokens and other private items have been moved to .env file to avoid any security problems.
Visual Changes
- Music related commands timer behavior has been changed. They will now be deleted as soon as the current track ends.
- Music related commands buttons have been edited a little to look different.
- /kiss has been changed and now contains a new gif.
- A new phrase has been added to some error embeds to suggest the user to try the command again with one click and most of other phrases have been edited.
- /help has been rewritten again.
- /leaderboard has been edited to look a little different.
- XP system has been changed and the bot will no longer give XP to a banned message.
- The maximum amount of raw XP a user is allowed to receive has been increased to 32. (Was 30 before.)
- The minimum amount of raw XP a user is allowed to receive has been increased to 7. (Was 5 before.)
- /roll has been updated and now user can win or lose some XP by rolling 15 numbers. (Was 10 before.)
- Two secret easter eggs have been added!