ccc663f1da
update all packages
2024-12-10 19:15:59 +01:00
Elis Odenhage
8a77d29e63
fix: update cooldown duration to a week
2024-12-10 19:15:28 +01:00
Elis Odenhage
a078e7de83
fix: update cooldown duration to a month
2024-12-10 19:14:56 +01:00
5fc1586a2b
Update handleUnavailableCommand.ts
2024-04-10 21:03:34 +00:00
8a1ee93cb7
Update handleCooldown.ts
2024-04-10 21:03:20 +00:00
d0a5335d54
Update index.ts
2024-04-10 21:03:03 +00:00
3d286b7a61
Update interactionErrorHandler.ts
2024-04-10 21:01:15 +00:00
c485304627
Fix grammatical error in balance command
2024-03-02 07:57:29 +01:00
66ed4466a1
feat: ⚰️ remove unused code
...
this is really a feature just to check if CI works correctly
2023-10-01 17:22:45 +02:00
61af819a54
refactor: ♻️ improve readDriectory function
...
I improved use of errorMessage
2023-10-01 17:18:00 +02:00
83c0af64c9
refactor: ♻️ improve checkPermission function
...
Made use of optional chaining (?.) to get rid of a if statement
2023-10-01 17:15:38 +02:00
f312b78b14
fix: 💬 update link from github to zyner git
...
Updated about command from github to zyner git
2023-10-01 16:33:11 +02:00
a816129dd2
feat: ♻️ centralized error classes
...
I have cleaned up some code by moving some regular used throw new messages to a error class file
2023-10-01 16:10:58 +02:00
2395167b89
Add check for user in quote post command
2023-09-24 18:11:24 +00:00
f1f5513635
Update baseURL to match API endpoint
2023-08-06 22:25:44 +00:00
af14c7598e
fix: ✨ throw error if user tries to execute same command while one is processing
...
If a user tries to execute same command twice at same time, then throw error on one of them to prevent them from go around the cooldown system
2023-06-02 12:55:31 +02:00
acdd5076e7
feat: 🚸 improve style for users on interaction error
...
Moved error message into description and if its undefined then show a general error
2023-06-02 12:55:31 +02:00
828524d4c2
fix: 🐛 fix reputation repute function
...
Fixed the broken reputation repute command, so now it actualyl can give reputation to people
2023-06-02 12:55:31 +02:00
26d03c282c
feat: 🚸 make bonus commands set their time at midnights
...
This fixes all bonus commands to have their cooldowns set at midnight
2023-06-02 12:55:31 +02:00
e223309796
feat: ✨ ability to set prorata cooldowns
...
This should solve issues where some commands wants prorata cooldowns, that expire on midnight and such
Ability to set a cooldown using seconds, now you need to call a Date constructing function. So you always pass a date as cooldownTime
2023-06-02 12:55:31 +02:00
add510e6d0
style: 🧑💻 change to 24*60*60 instead of 86400
2023-06-02 12:55:31 +02:00
Elis Odenhage
9cbe7cafcf
fix: update cooldown duration to a week
2023-05-31 21:55:44 +02:00
Elis Odenhage
79076a49fc
fix: update cooldown duration to a month
2023-05-31 21:55:44 +02:00
8c1c0af360
feat: 🚸 add penalty cost if spamming messages
...
If a user sends messages too fast, it will give them a penalty defined by "penaltyAmount" so that users will lose credits by spamming. Spam rate is set by "maxMessageAmount" which is how many messages a user is allowed to send during "checkTime"
2023-05-31 14:51:07 +02:00
3875c9e136
fix: 🗃️ update instead of create new cooldowns if one already exists
...
This should solve problems related to bot creating new cooldowns when they are expired instead of updating their "expiresAt" date
2023-05-31 14:51:07 +02:00
450d8304b2
fix: 🐛 remove expiresAt when searching cooldown table
...
This was a "bug" that made Prisma create new cooldowns whenever it exceeded the expiresAt Datetime
2023-05-30 10:14:56 +02:00
2c8acb380e
fix: ⚡ fix duplicate rows
...
The bot created new cooldowns instead of updating old ones, this commit fixes this by doing an updateMany if it finds a cooldown instead of just creating new ones
2023-05-29 21:08:38 +02:00
5a43128c50
fix: ⚡ replace template string with double quote
...
Replaced with double quote as a template string is unneeded
2023-05-29 17:31:17 +02:00
04ef7c9d8d
fix: 🐛 create user if not exist before create quote
...
Create missing users before creating a new quote in database to ensure that it can have a relation
2023-05-29 17:31:17 +02:00
ce7d3d8695
fix: 🚚 rename quote to quotes
...
Renamed /quote to /quotes
2023-05-29 17:31:17 +02:00
a2e1fa7a98
feat: ✨ add quote feature
...
Now users can post quotes about each other if guild has enabled it!
2023-05-29 17:31:17 +02:00
21a5cd3eab
fix: 🚸 change to ephermal cooldown messages
...
Changed to using ephemeral messages for cooldowns, so users are not spamming others by cooldown messages
2023-05-29 17:31:17 +02:00
3cf88abfd0
feat: 🗃️ add createdAt & updatedAt fields for Cooldowns
...
Added timestamps for when a cooldown was created and last time updated
2023-05-29 17:31:17 +02:00
af9e48a8eb
Version 2.0.0
2023-05-28 16:06:21 +02:00
bbdf359dd7
Improve discord subcommand descriptions
2023-01-26 18:43:30 +01:00
2d5182f840
Remove commented code
2023-01-26 18:43:30 +01:00
c19a1d8653
Improve structure subcommands utils
2023-01-26 18:43:30 +01:00
9eb3dacc5c
Improved structure of single file events
2023-01-26 18:43:30 +01:00
672abc44bd
More refactoring
2023-01-26 18:43:30 +01:00
aea3dfd365
refactoring
2023-01-26 18:43:30 +01:00
deepsource-autofix[bot]
61f7cf8c65
Format code with prettier
2023-01-21 19:09:23 +01:00
72ac9d3895
fix issue #596
2023-01-21 19:09:23 +01:00
6b1eb44fad
improve user experience
2023-01-21 19:09:23 +01:00
d19a3af6a3
fix issue #588
2023-01-21 19:09:23 +01:00
2489728efb
refactor: 🧑💻 improve developer experience
2022-12-25 21:29:33 +01:00
64f8cceb34
fix: 🐛 fix cooldown twice action
...
I think this has solved the problem
2022-12-25 21:29:33 +01:00
96cb38464a
refactor: 🧑💻 improve developer experience
2022-12-25 16:53:30 +01:00
089b20a8cd
fix: 🐛 fix cooldown twice action
...
I think this has solved the problem
2022-12-25 16:53:30 +01:00
79d67fdf85
refactor: 🚸 change bot presence
2022-12-25 03:23:54 +01:00
6f932d9fb9
fix: 🚑 fix bot crash if oldMessage content undefined
...
Added an if statement to return if oldMessage.content is undefined
2022-12-25 03:13:24 +01:00