Commit graph

657 commits

Author SHA1 Message Date
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
79a563e849 refactor: 🚸 refactor and improve ux in heplers and middlewares 2022-12-25 02:45:53 +01:00
d35242f33a refactor: 🧑‍💻 refactored event messageCreate
Remove unnecessary code in the messageCreate event
2022-12-21 07:48:50 +01:00
b5a6385e18 refactor: 🧑‍💻 refactored interactionCreate
Improved handling of interactions, using correct types
2022-12-21 07:40:41 +01:00
3b0bde3cc5 refactor: 🚸 refactor config credits
Refactored and improved UX for /config credits
2022-12-20 09:33:19 +01:00
e6c3e6cfc4 refactor: 🧑‍💻 refactor config cpgg
Refactored and improved UX for /config cpgg
2022-12-20 09:21:59 +01:00
61eaf84dc7 refactor: 🧑‍💻 refactor config audits
Refactored and improved UX for the /config audits command
2022-12-20 09:21:59 +01:00
94dac69c00 Update overDueForPayment.ts 2022-12-19 20:44:17 +01:00
109b89c820 fix: 🗃️ Perform migrations from older versions
This is my first customized migration script, I hope it works as intended.

This may result in a database loss, please perform backups before proceeding, it should do migrate if everything works as intended
2022-12-19 20:44:17 +01:00
258e15c45d perf: 🗃️ seperate configs in database 2022-12-19 20:44:17 +01:00
c3fe4ca2d5 fix(audits): 🐛 Fix audit log sent when an url is sent that adds an embed to the message #514
Fixed so the bot wont send a messageUpdate audit log when links are sent
2022-12-19 20:44:17 +01:00
3c079943b0 refactor: 🧑‍💻 modules are called subcommands and groups
It makes more sense to use subcommands and groups as names instead of modules
2022-12-19 20:44:17 +01:00
a6605f7732 feat(audits): add content to embed
Added content to audit embeds for messageDelete and messageUpdate
2022-12-19 20:44:17 +01:00
f0121206b5 style(ux): 🚸 update audit embed
Updated audit embeds for guildMemberAdd and guildMemberRemove event
2022-12-19 20:44:17 +01:00
0a444ad771 refactor(audits): ♻️ refactor interactionCreate audit log
Refactored interactionCreate audit log file
2022-12-19 20:44:17 +01:00
ae368d8ed5 refactor(audits): ♻️ add auditLog helper
Added auditLogger function as an helper to reduce duplication of code
2022-12-19 20:44:17 +01:00
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