Commit graph

636 commits

Author SHA1 Message Date
be99b4cf62
fix: 🚑 Remove failing code 2022-12-13 17:30:54 +01:00
2c6ec5ee2e refactor: ♻️ Fixed more code smells
I have fixed more code smells
2022-12-13 17:25:54 +01:00
f022632de4 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 17:25:54 +01:00
696f6c746a build: 💚 Fixed missing variable
Missing client in about command made build job fail
2022-12-13 17:01:52 +01:00
73dd735930 refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
8833b2af69 refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
43a81a0828 refactor: ♻️ Fix more code smells 2022-12-13 15:33:35 +01:00
c9728a1354 refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
bfdfd046bc refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
35e2d2eee0 refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
975b9686dc refactor: ♻️ Fix code smells 2022-12-13 15:33:35 +01:00
7136a5bd99 refactor: ♻️ Fix code smell 2022-12-13 15:33:35 +01:00
e2eeec8b97 refactor: ♻️ Fix code smell 2022-12-13 15:33:35 +01:00
c33a9c345e refactor: ♻️ Fix more code smells
Fix code smell
2022-12-13 15:33:35 +01:00
555b97d2c5 refactor: ♻️ Fix more code smells
I have fixed some more code smells
2022-12-13 14:51:50 +01:00
01024c7702 fix: 🚑 Fix probably bot crashing from editing messages 2022-12-13 14:45:43 +01:00
dd3d262a01 refactor: ♻️ Fixed more code smells
More code smells fixed
2022-12-13 14:40:22 +01:00
0f8ea8ad2b
refactor: ♻️ Fixed more code smells
I have fixed more code smells
2022-12-13 14:27:00 +01:00
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