Commit graph

1524 commits

Author SHA1 Message Date
semantic-release-bot
6a21c9cd83 chore(release): 2.3.0-dev.1 [skip ci]
# [2.3.0-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.2.1...v2.3.0-dev.1) (2023-06-02)

### Bug Fixes

* 🐛 fix reputation repute function ([828524d](828524d4c2))
*  throw error if user tries to execute same command while one is processing ([af14c75](af14c7598e))

### Features

* 🚸 improve style for users on interaction error ([acdd507](acdd5076e7))
* 🚸 make bonus commands set their time at midnights ([26d03c2](26d03c282c))
*  ability to set prorata cooldowns ([e223309](e223309796))
2023-06-02 10:56: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
renovate[bot]
06f934aecb
chore(deps): update dependency typescript to v5.1.3 2023-06-02 10:54:33 +00:00
semantic-release-bot
237e6e27eb chore(release): 2.2.1 [skip ci]
## [2.2.1](https://github.com/ZynerOrg/xyter/compare/v2.2.0...v2.2.1) (2023-05-31)

### Bug Fixes

* update cooldown duration to a month ([79076a4](79076a49fc))
* update cooldown duration to a week ([9cbe7ca](9cbe7cafcf))
2023-05-31 19:57:04 +00:00
4153b013ce
Merge pull request #657 from ZynerOrg/dev
Fix cooldowns for credits bonus commands
2023-05-31 21:56:25 +02:00
renovate[bot]
2ad1af9a14
fix(deps): update dependency dotenv to v16.1.3 2023-05-31 19:56:16 +00: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
semantic-release-bot
cba7e6a706 chore(release): 2.2.0 [skip ci]
# [2.2.0](https://github.com/ZynerOrg/xyter/compare/v2.1.2...v2.2.0) (2023-05-31)

### Bug Fixes

* 🗃️ update instead of create new cooldowns if one already exists ([3875c9e](3875c9e136))
* **deps:** update dependency dotenv to v16.1.1 ([45e9365](45e93653ad))
* **deps:** update prisma monorepo to v4.15.0 ([cd93891](cd93891d37))

### Features

* 🚸 add penalty cost if spamming messages ([8c1c0af](8c1c0af360))
2023-05-31 12:52:36 +00:00
semantic-release-bot
09b4bf15a3 chore(release): 2.2.0-dev.2 [skip ci]
# [2.2.0-dev.2](https://github.com/ZynerOrg/xyter/compare/v2.2.0-dev.1...v2.2.0-dev.2) (2023-05-31)

### Bug Fixes

* **deps:** update dependency dotenv to v16.1.1 ([d8439dd](d8439dd823))
* **deps:** update prisma monorepo to v4.15.0 ([40c5844](40c5844848))
2023-05-31 14:51:07 +02:00
renovate[bot]
45e93653ad fix(deps): update dependency dotenv to v16.1.1 2023-05-31 14:51:07 +02:00
renovate[bot]
cd93891d37 fix(deps): update prisma monorepo to v4.15.0 2023-05-31 14:51:07 +02:00
semantic-release-bot
22496fbacf chore(release): 2.2.0-dev.1 [skip ci]
# [2.2.0-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.1.2...v2.2.0-dev.1) (2023-05-31)

### Bug Fixes

* 🗃️ update instead of create new cooldowns if one already exists ([1ee942c](1ee942c44c))

### Features

* 🚸 add penalty cost if spamming messages ([2f79a25](2f79a25e7a))
2023-05-31 14:51:07 +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
6ad1de8d6f chore: 📌 update dependencies
Updated dependencies to latest versions
2023-05-30 10:53:05 +02:00
d7a1fcf3af ci: 💚 fix version for docker builds
By adding "needs" I think it should push with correct version
2023-05-30 10:34:48 +02:00
semantic-release-bot
808798c203 chore(release): 2.1.2 [skip ci]
## [2.1.2](https://github.com/ZynerOrg/xyter/compare/v2.1.1...v2.1.2) (2023-05-30)

### Bug Fixes

* 🐛 remove expiresAt when searching cooldown table ([450d830](450d8304b2))
2023-05-30 08:17:41 +00:00
f7f06ab409
Update release.yml 2023-05-30 10:16:39 +02:00
semantic-release-bot
e7fb5b8fea chore(release): 2.1.2-dev.1 [skip ci]
## [2.1.2-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.1.1...v2.1.2-dev.1) (2023-05-30)

### Bug Fixes

* 🐛 remove expiresAt when searching cooldown table ([e344cb6](e344cb60fb))
2023-05-30 10:14:56 +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
semantic-release-bot
d16c0efd53 chore(release): 2.1.1 [skip ci]
## [2.1.1](https://github.com/ZynerOrg/xyter/compare/v2.1.0...v2.1.1) (2023-05-29)

### Bug Fixes

*  fix duplicate rows ([2c8acb3](2c8acb380e))
*  fix duplicate rows ([9485739](9485739772))
2023-05-29 22:59:58 +00:00
a9b078e349
Merge pull request #643 from ZynerOrg/dev
Dev
2023-05-30 00:59:07 +02:00
semantic-release-bot
c5ee36d46f chore(release): 2.1.1-dev.1 [skip ci]
## [2.1.1-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.1.0...v2.1.1-dev.1) (2023-05-29)

### Bug Fixes

*  fix duplicate rows ([9485739](9485739772))
2023-05-29 21:08:38 +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
semantic-release-bot
46e6242ae7 chore(release): 2.1.1-dev.1 [skip ci]
## [2.1.1-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.1.0...v2.1.1-dev.1) (2023-05-29)

### Bug Fixes

*  fix duplicate rows ([9485739](9485739772))
2023-05-29 19:03:41 +00:00
9485739772 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:03:00 +02:00
semantic-release-bot
f5f68a0a96 chore(release): 2.1.0 [skip ci]
# [2.1.0](https://github.com/ZynerOrg/xyter/compare/v2.0.0...v2.1.0) (2023-05-29)

### Bug Fixes

* 🔖 forgot to update version in package.json ([a8377d0](a8377d00ff))
* 🐛 create user if not exist before create quote ([04ef7c9](04ef7c9d8d))
* 🚸 change to ephermal cooldown messages ([21a5cd3](21a5cd3eab))
* 🚚 rename quote to quotes ([ce7d3d8](ce7d3d8695))
*  replace template string with double quote ([5a43128](5a43128c50))

### Features

* 🗃️ add createdAt & updatedAt fields for Cooldowns ([3cf88ab](3cf88abfd0))
*  add quote feature ([a2e1fa7](a2e1fa7a98))
2023-05-29 15:32:02 +00:00
6b76d6e0aa build: 🎨 Use COPY instead of ADD for files and folders
For items like files and directories that do not require ADD’s tar auto-extraction capability, you should always use COPY. Read more about it here.
2023-05-29 17:31:17 +02:00
semantic-release-bot
1ffc5259a4 chore(release): 2.1.0-dev.3 [skip ci]
# [2.1.0-dev.3](https://github.com/ZynerOrg/xyter/compare/v2.1.0-dev.2...v2.1.0-dev.3) (2023-05-29)

### Bug Fixes

*  replace template string with double quote ([914ca04](914ca04302))
2023-05-29 17:31:17 +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
renovate[bot]
9e78dafa85 chore(deps): update dependency @semantic-release/release-notes-generator to v11.0.2 2023-05-29 17:31:17 +02:00
semantic-release-bot
76efed3fad chore(release): 2.1.0-dev.2 [skip ci]
# [2.1.0-dev.2](https://github.com/ZynerOrg/xyter/compare/v2.1.0-dev.1...v2.1.0-dev.2) (2023-05-29)

### Bug Fixes

* 🐛 create user if not exist before create quote ([2a395a5](2a395a596e))
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
semantic-release-bot
d5e2ed9ff2 chore(release): 2.1.0-dev.1 [skip ci]
# [2.1.0-dev.1](https://github.com/ZynerOrg/xyter/compare/v2.0.0...v2.1.0-dev.1) (2023-05-29)

### Bug Fixes

* 🔖 forgot to update version in package.json ([8d6454f](8d6454f508))
* 🚸 change to ephermal cooldown messages ([26f2dd2](26f2dd2657))
* 🚚 rename quote to quotes ([4adf4ae](4adf4aee5b))

### Features

* 🗃️ add createdAt & updatedAt fields for Cooldowns ([bc47e92](bc47e9286b))
*  add quote feature ([5a4508d](5a4508d95d))
2023-05-29 17:31:17 +02:00
1ccdfc2e82 build: 🔖 add dev semantic prerelease
Added semantic release job for dev branch
2023-05-29 17:31:17 +02:00
a8377d00ff fix: 🔖 forgot to update version in package.json
I had forgot update version in package.json, this is not something affecting code, it just makes the update look better, even tho it still would got a version above 2.0.0
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
semantic-release-bot
41af2032ac chore(release): 1.4.5 [skip ci]
## [1.4.5](https://github.com/ZynerOrg/xyter/compare/v1.4.4...v1.4.5) (2023-05-28)

### Bug Fixes

* **deps:** update dependency winston to v3.9.0 ([022a295](022a295f91))
2023-05-28 14:19:28 +00:00
a1f7572bb5
Merge pull request #630 from ZynerOrg/renovate/winston-3.x-lockfile
fix(deps): update dependency winston to v3.9.0
2023-05-28 16:18:49 +02:00
f4ec0cfe9e
Merge pull request #628 from ZynerOrg/renovate/actions-setup-node-3.x
chore(deps): update actions/setup-node action to v3
2023-05-28 16:18:42 +02:00
eeba627688
Merge pull request #627 from ZynerOrg/renovate/actions-checkout-3.x
chore(deps): update actions/checkout action to v3
2023-05-28 16:18:36 +02:00