Commit graph

668 commits

Author SHA1 Message Date
c6d6547881 refactor: ⚰️ Fixed code smells
Fixed some more code smells
2022-12-13 14:21:35 +01:00
89c7fe952b
refactor: ⚰️ Fixed some code smells
Fixed some code smells from https://deepsource.io/gh/ZynerOrg/xyter/run/8058c521-9330-4c14-94b2-0c3a7d9d824b/javascript/
2022-12-13 14:16:41 +01:00
b2e4c05906
Merge branch 'dev' into main 2022-12-13 14:01:35 +01:00
6fb0c6db1b
Update index.ts 2022-12-12 12:23:23 +01:00
ea8c160a2f
chore(ux): 🚸 Improve deferReply message
Improved UX by writing a better deferReply message that looks good when a request takes time
2022-12-04 19:12:35 +01:00
7398223b53
chore(ux): 🚸 Improved /credits gift
I improved UX with better messages for /credits gift
2022-12-04 19:05:18 +01:00
7b34763660
v1.1.0 (#508)
* ci: 💚 remove arm64 build (#497) (#498)

I had to remove arm64 platform from the images since prisma client do not seem to support arm64 yet

* User Experience Improvements (#507)

* ci: 💚 remove arm64 build (#497)

I had to remove arm64 platform from the images since prisma client do not seem to support arm64 yet

* Update dependency prettier to v2.8.0 (#502)

* fix: 📦 add missing package prisma

* ci: 💚 remove arm64 build (#497) (#498) (#499)

I had to remove arm64 platform from the images since prisma client do not seem to support arm64 yet

* Update Dockerfile

* Update schema.prisma

* Configure Renovate (#500)

* Add renovate.json

* Format code with prettier

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* Update dependency prettier to v2.8.0

Co-authored-by: Vermium Sifell <vermium@zyner.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* Update dependency @types/uuid to v9 (#503)

* fix: 📦 add missing package prisma

* ci: 💚 remove arm64 build (#497) (#498) (#499)

I had to remove arm64 platform from the images since prisma client do not seem to support arm64 yet

* Update Dockerfile

* Update schema.prisma

* Configure Renovate (#500)

* Add renovate.json

* Format code with prettier

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* Fix invite URL (#504)

* Update dependency @types/uuid to v9

Co-authored-by: Vermium Sifell <vermium@zyner.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>

* Update dependency lint-staged to v13.0.4 (#501)

* fix: 📦 add missing package prisma

* ci: 💚 remove arm64 build (#497) (#498) (#499)

I had to remove arm64 platform from the images since prisma client do not seem to support arm64 yet

* Update Dockerfile

* Update schema.prisma

* Configure Renovate (#500)

* Add renovate.json

* Format code with prettier

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* Fix invite URL (#504)

* Update dependency lint-staged to v13.0.4

Co-authored-by: Vermium Sifell <vermium@zyner.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>

* It's all about User Experience (#505)

* chore(ux): 🚸 Improved credits balance messages

Improved how messages is written by using "you" form and make it less cluttered

* feat(ux): 🚸 Added version to utility stats

Added a running version field to utility stats to show hosters and their users if they support commands that may is too new for their running version

* chore(nodejs): 🔖 change version to v1.1.0

This is to make sure that package.json has corrcet version tagged inside of it

* chore(ux): 🚸 updated "on cooldown" message

Makes more sense to talk in a more positive tone than a negative tone

* style(ux): 🚚 utility => utils

Renaming utility category to utils makes it easier for users to retype commands

* chore(ux): 🚸 Improved utils about

"/utils about" now shows information about the current bot instance, such as uptime, total users and guilds and version

Removed information about Xyter in the bot. Instead users are expected to go to out documentation to learn more

* chore(ux): 🚸 Improved /utils avatar

Improved messages for /utils avatar and added a link for people to know that they could download the image

* refactor(ux): 🚸 Removed /utils ping

Removed /utils ping since /utils about now includes latency related information

Merged /utils ping into /utils about

* refactor(ux): 🚸 Removed /utils stats

Removed /utils stats since now /utils about includes information about bot instance

Merged /utils stats into /utils about

* chore(ux): 🚸 Improved /fun meme

Improved UX for /fun meme and added a link button for viewing the post

* chore(ux): 🚸 /reputation view => /reputation check and improved UX

Renamed /reputation view to /reputation check as it makes more sense, also improved messages for better user experience

Moved /reputation view to /reputation check

* chore(ux): 🚸 Moved /reputation give => /reputation repute and improved UX

/reputation repute makes more sense than /reputation give and I also updated messages to be more user engaging

Moved /reputation give to /reputation repute

* chore(ux): 🚸 Improved error messages

I changed so description would be the error message instead of the error object. I also updated the title and added a report problem button that links to the official discord server

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>
2022-12-04 17:48:25 +01:00
deepsource-autofix[bot]
070cedb451
Format code with prettier (#489)
This commit fixes the style issues introduced in 502f8b1 according to the output
from prettier.

Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/2d6f5e66-ae8b-4261-92a6-688077649213/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-11-04 13:53:39 +01:00
dbf4471ced 📦 Removed unused and updated packages 2022-11-01 18:54:16 +01:00
8b8adf676f
Merge pull request #474 from VermiumSifell/dev
Improve workflow and developer experience in VS code and when upserting guild members
2022-11-01 18:44:02 +01:00
ef76cf01f6
add helper to upsert a guild member 2022-10-31 14:51:48 +01:00
5620eb8315 💡 JS-D1001 2022-10-24 11:13:03 +02:00
38e5ebbade 🚨 JS-0294 2022-10-24 11:10:05 +02:00
71ff30ea87 🚨 JS-0116 JS-0376 2022-10-24 10:09:58 +02:00
77bfe48613
🔨 Set NODE_ENV to development for npm run dev 2022-10-24 01:54:53 +02:00
048f8bade9
♻️ Command Handler 2022-10-24 01:51:51 +02:00
5d1f8e4569
♻️ deployCommands Handler 2022-10-24 01:51:43 +02:00
c352a08295
💡 🔊 🎨 ♻️ updatePresence Handler 2022-10-24 01:05:04 +02:00
092b4be7b4
🔊 add clock to no jobs warning 2022-10-24 00:56:15 +02:00
29391d76ff
♻️ Event Handler 2022-10-24 00:55:33 +02:00
5f7031587f
♻️ Cooldown middleware 2022-10-24 00:43:00 +02:00
0239b6c4dc
🚸 🎨 ♻️ Cooldown Middleware 2022-10-24 00:17:04 +02:00
c8fb975623
♻️ replaced * cooldown functions with 1 middleware 2022-10-23 23:22:13 +02:00
976e8e7fdc
🚚 one file per credit transaction type 2022-10-23 23:07:54 +02:00
cf3f3449e8
🔊 Added query logging for Prisma 2022-10-23 22:33:16 +02:00
d624c62669
♻️ Give credits helper 2022-10-23 22:32:54 +02:00
45549f41d7
🐛 Bot now respond, interactions, guild not in db 2022-10-23 19:52:30 +02:00
247bc3150e
💡 added comment to credits.transfer 2022-10-23 19:19:50 +02:00
49f4e6d200
🩹 checkDirectory no longer depend on node path 2022-10-23 17:27:53 +02:00
8804a83149
♻️ Counters Module 2022-10-23 12:36:15 +02:00
599a5b0c64
🚚 move transferCredits to export transfer 2022-10-22 17:12:31 +02:00
456e1caff1
🚸 debug > throw an error, no counters in channel 2022-10-22 16:43:03 +02:00
0534451d64
🥅 verify amount < 100.000.000 else throw 2022-10-22 16:38:30 +02:00
6f3bd4e828
Merge branch 'dev-2022.11.01' into 438-bug-credits-gift-value-overflow-when-gifting-more-than-2147483662 2022-10-22 16:28:07 +02:00
3551412be3
🐛 limited max value to 100.000.000 2022-10-22 16:27:01 +02:00
364f07dd7c
💡 Add comment to credit modules 2022-10-22 16:12:02 +02:00
a9fd50f84e
♻️ Credits module 2022-10-22 16:08:24 +02:00
3c49580831
💡 Add comment for baseEmbeds 2022-10-22 16:03:37 +02:00
74c94b467f
🩹 dev guild commands now working as expected 2022-10-22 15:59:36 +02:00
1b4c776037
🧑‍💻 Add helper, reduce duplicated code 2022-10-22 15:57:30 +02:00
bf80a4e50f 💡 Start main process 2022-10-21 20:40:08 +02:00
bef79d427e 💡 Start critical handlers 2022-10-21 20:36:23 +02:00
877bdbdb1d Merge branch 'dev' of https://github.com/vermiumsifell/xyter into dev 2022-10-21 20:31:32 +02:00
9f107b280d 🚨 Fixed some code smells for JS-0116 & JS-D1001 2022-10-21 20:30:50 +02:00
426eb7a85c 🚨 Fixed more code smells (JS-D1001) 2022-10-21 20:24:05 +02:00
f34cf8dd91 🚨 Fixed more JS-0116 2022-10-21 20:21:15 +02:00
6be605a8e3 🚨 Fixed some JS-0116 2022-10-21 20:19:04 +02:00
810fabc794 🚨 Fixed some JS-C1003 2022-10-21 20:14:14 +02:00
3ba9b204d4 🚨 Fixed JS-0066 2022-10-21 20:09:50 +02:00
3deec31b86 🚨 Fixed some JS-D1001 2022-10-21 20:00:25 +02:00