Releases: AverageHelper/Gamgee
Releases · AverageHelper/Gamgee
v1.6.5
Fixed
- Turns out
node-fetch-cjs
is broken. I tried something different and gotnode-fetch
to work!
v1.6.4
Changed
- Made
/stats
output a bit more consistent with itself. - Dependency audit time! We've updated most every dependency except ORM stuff. (I plan to do something special about those later, so stay tuned!)
node-fetch
is ESM-only now, but Jest doesn't play well with that yet. There's a race to see whether that'll get fixed before Node 18 gets popular. In the meantime, we usenode-fetch-cjs
instead.- Updated Prettier means that we no longer need parentheses around
as unknown
casts. - Updated ESLint rules have pointed out that we really shouldn't be returning un-
await
ed Promises. I've fixed that, and my tooling assures me that every returnedPromise
now gets anawait
friend! 😄 We may never know if this change made a difference at runtime, but even an invisible improvement is a good improvement imo. - We now require Node 16.10.x, because Jest does.
- Slightly better internal organization, taking advantage of clearer discord.js TypeScript definitions
Fixed
- Fixed a bug which could allow multiple requests to sneak into the queue if they were submitted at about the same time as the queue auto-closed.
Dev note: If you use VS Code and the Prettier extension, you may need to reload your window after pulling this down, or else Prettier might not correctly apply its updated opinions.
v1.6.3
Fixed
- Fixes (I hope) a bug that caused button interactions to sometimes fail as the interaction token expires during long-running database writes. We now defer interactions first!
v1.6.2
Changed
?ping
no longer pings the calling user, to be consistent with the behavior of/ping
Fixed
- Fixed crash when users would send a message in a voice text channel
/t
now replies ephemerally always, even if Gamgee thinks the channel is a DM
v1.6.1
Changed
- No runtime changes this version. The only change was to a setup file that handled the (infrequent) deployment of app commands to Discord. If you had trouble with the deployment in 1.6.0, this should fix that.
- Due to discord-api-docs#4830, we no longer try to set app command permissions. We'll handle that with the same runtime fallback that message command permissions use.
In the future, we may set the default command permissions using new API constructs, and lean on Discord's UI to let guild admins configure command permissions as they see fit.
v1.6.0
After updating, be sure to run npm ci && npm run build:clean && npm run migrate
before running the bot.
Added
- Add a new limit for the minimum duration of a submission
- Special messaging when the queue is very nearly full
Changed
- Make
/stats
output clearer - Clearer message when Gamgee auto-closes an overfull queue
- Reorganize some code internally so we can better catch Slash Command edge cases
Known Issues
- The command deployment script removes guild-level slash-commands. Working on a fix for that now. As a workaround, avoid running
npm run setup
ornpm run commands:deploy
in this version.
v1.5.0
This update adds a field to the database schema, and adds new commands. Remember to run npm run setup
to migrate the database and update Discord's command index.
Added
- Added
/stats
to show users their personal queue stats - Added
/cooldown
to show users their personal cooldown timer - Added a configurable limit to the queue's total estimated playtime
- If a submission would take the total playtime over the configured limit, then Gamgee closes the queue.
- You'd remove the limit in the same way you remove other limits: set it to
0
ornull
.
- Gamgee tells you the length of your submission if it was rejected for length reasons
Changed
- Gamgee only shows the number of users who used
/now-playing
when that number is greater than zero. - Made
/version
readout less verbose - Updated TypeScript to version 4.6.3, and cleaned up the code a bit
- Named imports are nice
- Organized internal error structures
Removed
- Removed personal stats functionality from
/limits
Fixed
- Gamgee no longer adds "(Reply from ...)" when the message it's replying to was already a DM
- Preprocess SoundCloud links so Gamgee doesn't balk at query params or redirect links
- [For bot admins] Fixed migration errors. You should be able to run
npm run migrate
ornpm run setup
now without issues! - Fixed some edgy crash cases
v1.4.1
Changed
- Named exports are nice
Fixed
- Fixed some dependency vulnerabilities
- Fixed an issue which would cause
/now-playing
to wreck the formatting of queue messages
v1.4.0
v1.3.2
Fixed
- Fixed a bug where running
/quo restart
would fail to clear queues over 100 messages while silently dropping the local queue cache.