From 97cb57498a7346a748493eb3941e1087fe7a8a1a Mon Sep 17 00:00:00 2001 From: The Codacy Badger Date: Tue, 17 May 2022 08:02:44 +0000 Subject: [PATCH 01/40] Add Codacy badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 50680c8..c6ca509 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3d9f95c4a4814a2297142448c6646f60)](https://app.codacy.com/gh/ZynerOrg/xyter?utm_source=github.com&utm_medium=referral&utm_content=ZynerOrg/xyter&utm_campaign=Badge_Grade_Settings) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=ZynerOrg_xyter&metric=ncloc)](https://sonarcloud.io/dashboard?id=ZynerOrg_xyter) [![CodeFactor](https://www.codefactor.io/repository/github/ZynerOrg/xyter/badge/main)](https://www.codefactor.io/repository/github/ZynerOrg/xyter/overview/main) From 5416bf25234c7bca975a278a5faed1876248e0f4 Mon Sep 17 00:00:00 2001 From: DeepSource Bot Date: Tue, 17 May 2022 08:10:57 +0000 Subject: [PATCH 02/40] Add .deepsource.toml --- .deepsource.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..1f05ea0 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,5 @@ +version = 1 + +[[analyzers]] +name = "shell" +enabled = true \ No newline at end of file From 2285401f3d60f9633b039275fa9b1d73d2f068d3 Mon Sep 17 00:00:00 2001 From: DeepSource Bot Date: Tue, 17 May 2022 08:13:07 +0000 Subject: [PATCH 03/40] Add .deepsource.toml --- .deepsource.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..1f05ea0 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,5 @@ +version = 1 + +[[analyzers]] +name = "shell" +enabled = true \ No newline at end of file From 07d5cdde3c7b50cb863ea0c4501947098ff81d1e Mon Sep 17 00:00:00 2001 From: DeepSource Bot Date: Tue, 17 May 2022 08:14:36 +0000 Subject: [PATCH 04/40] Update .deepsource.toml --- .deepsource.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.deepsource.toml b/.deepsource.toml index 1f05ea0..e507163 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,5 +1,17 @@ version = 1 +[[analyzers]] +name = "javascript" +enabled = true + [[analyzers]] name = "shell" +enabled = true + +[[transformers]] +name = "standardjs" +enabled = true + +[[transformers]] +name = "prettier" enabled = true \ No newline at end of file From 7386a67c4758dc9166fa68685f6744c093becd34 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:14:55 +0000 Subject: [PATCH 05/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 07d5cdd according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/f4ec6b1e-fdc4-4438-ac17-52efacc4432f/ --- .vscode/extensions.json | 104 ++++++++++++++++++++-------------------- .vscode/settings.json | 52 ++++++++++---------- PRIVACY.md | 50 +++++++++---------- SECURITY.md | 6 +-- 4 files changed, 104 insertions(+), 108 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 4008731..a17e74d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,52 +1,52 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. - // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp - // List of extensions which should be recommended for users of this workspace. - "recommendations": [ - "abrahamwilliam007.es7-javascript-class-snippets", - "christian-kohler.npm-intellisense", - "christian-kohler.path-intellisense", - "dbaeumer.vscode-eslint", - "donjayamanne.githistory", - "eamodio.gitlens", - "esbenp.prettier-vscode", - "github.github-vscode-theme", - "irongeek.vscode-env", - "xabikos.javascriptsnippets", - "wix.vscode-import-cost", - "vscode-icons-team.vscode-icons", - "visualstudioexptteam.vscodeintellicode", - "teledemic.branch-warnings", - "tabnine.tabnine-vscode", - "streetsidesoftware.code-spell-checker", - "seatonjiang.gitmoji-vscode", - "sburg.vscode-javascript-booster", - "kisstkondoros.vscode-codemetrics", - "mgmcdermott.vscode-language-babel", - "mhutchie.git-graph", - "mikestead.dotenv", - "mongodb.mongodb-vscode", - "ms-vscode-remote.remote-wsl-recommender", - "ms-vscode.js-debug", - "ms-vscode.js-debug-companion", - "ms-vscode.references-view", - "ms-vscode.vscode-js-profile-table", - "pflannery.vscode-versionlens", - "adpyke.codesnap", - "anan.devdocstab", - "axosoft.gitkraken-glo", - "gruntfuggly.todo-tree", - "kiteco.kite", - "lkytal.pomodoro", - "wayou.vscode-todo-highlight", - "johnpapa.vscode-peacock", - "stepsize.stepsize", - "nicoespeon.abracadabra", - "sonarsource.sonarlint-vscode", - "nicoespeon.hocus-pocus", - "aaron-bond.better-comments", - "oouo-diogo-perdigao.docthis" - ], - // List of extensions recommended by VS Code that should not be recommended for users of this workspace. - "unwantedRecommendations": [] -} +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "abrahamwilliam007.es7-javascript-class-snippets", + "christian-kohler.npm-intellisense", + "christian-kohler.path-intellisense", + "dbaeumer.vscode-eslint", + "donjayamanne.githistory", + "eamodio.gitlens", + "esbenp.prettier-vscode", + "github.github-vscode-theme", + "irongeek.vscode-env", + "xabikos.javascriptsnippets", + "wix.vscode-import-cost", + "vscode-icons-team.vscode-icons", + "visualstudioexptteam.vscodeintellicode", + "teledemic.branch-warnings", + "tabnine.tabnine-vscode", + "streetsidesoftware.code-spell-checker", + "seatonjiang.gitmoji-vscode", + "sburg.vscode-javascript-booster", + "kisstkondoros.vscode-codemetrics", + "mgmcdermott.vscode-language-babel", + "mhutchie.git-graph", + "mikestead.dotenv", + "mongodb.mongodb-vscode", + "ms-vscode-remote.remote-wsl-recommender", + "ms-vscode.js-debug", + "ms-vscode.js-debug-companion", + "ms-vscode.references-view", + "ms-vscode.vscode-js-profile-table", + "pflannery.vscode-versionlens", + "adpyke.codesnap", + "anan.devdocstab", + "axosoft.gitkraken-glo", + "gruntfuggly.todo-tree", + "kiteco.kite", + "lkytal.pomodoro", + "wayou.vscode-todo-highlight", + "johnpapa.vscode-peacock", + "stepsize.stepsize", + "nicoespeon.abracadabra", + "sonarsource.sonarlint-vscode", + "nicoespeon.hocus-pocus", + "aaron-bond.better-comments", + "oouo-diogo-perdigao.docthis" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 76d8e57..38d1af9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,26 +1,26 @@ -{ - "editor.bracketPairColorization.enabled": true, - "editor.codeActionsOnSave": ["source.formatDocument", "source.fixAll.eslint"], - "editor.cursorBlinking": "phase", - "editor.cursorSmoothCaretAnimation": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.fontFamily": "Cascadia Code", - "editor.fontLigatures": true, - "editor.formatOnSave": true, - "editor.guides.bracketPairs": "active", - "editor.minimap.maxColumn": 200, - "editor.minimap.renderCharacters": false, - "editor.minimap.showSlider": "always", - "editor.tabSize": 2, - "editor.wordWrapColumn": 100, - "files.eol": "\n", - "files.trimTrailingWhitespace": true, - "cSpell.customDictionaries": { - "custom-dictionary-workspace": { - "name": "custom-dictionary-workspace", - "path": "${workspaceFolder:xyter}/.cspell/custom-dictionary-workspace.txt", - "addWords": true, - "scope": "workspace" - } - } -} +{ + "editor.bracketPairColorization.enabled": true, + "editor.codeActionsOnSave": ["source.formatDocument", "source.fixAll.eslint"], + "editor.cursorBlinking": "phase", + "editor.cursorSmoothCaretAnimation": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.fontFamily": "Cascadia Code", + "editor.fontLigatures": true, + "editor.formatOnSave": true, + "editor.guides.bracketPairs": "active", + "editor.minimap.maxColumn": 200, + "editor.minimap.renderCharacters": false, + "editor.minimap.showSlider": "always", + "editor.tabSize": 2, + "editor.wordWrapColumn": 100, + "files.eol": "\n", + "files.trimTrailingWhitespace": true, + "cSpell.customDictionaries": { + "custom-dictionary-workspace": { + "name": "custom-dictionary-workspace", + "path": "${workspaceFolder:xyter}/.cspell/custom-dictionary-workspace.txt", + "addWords": true, + "scope": "workspace" + } + } +} diff --git a/PRIVACY.md b/PRIVACY.md index f07fa94..4bffac4 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -7,54 +7,50 @@ This document entails the privacy policy and agreement that you accept when addi This privacy policy applies to **Xyter**#7721 (949998000401436673) - - - ### Terminology -* **Server Manager** - Anyone who has the ability to add a bot to a server or configure the bot for the server. This is usually an administrator or moderator -* **Server Member** - Anyone who is a member of server to which one of the bots has been added -* **Service User** - Anyone who authorizes an application (logs in) for a scope that provides additional information - +- **Server Manager** - Anyone who has the ability to add a bot to a server or configure the bot for the server. This is usually an administrator or moderator +- **Server Member** - Anyone who is a member of server to which one of the bots has been added +- **Service User** - Anyone who authorizes an application (logs in) for a scope that provides additional information ### Data Collected By Command -The following items may be collected and stored when intentionally provided by a user (usually by means of a command). This data will not be collected automatically. When providing data in this way, you forego any rights to the content of the data provided. -* Server configurations (/settings guild) -* Data and content for automated tasks (/shop roles) -* Locale (/settings user language) -* Reputation (/reputation give) +The following items may be collected and stored when intentionally provided by a user (usually by means of a command). This data will not be collected automatically. When providing data in this way, you forego any rights to the content of the data provided. + +- Server configurations (/settings guild) +- Data and content for automated tasks (/shop roles) +- Locale (/settings user language) +- Reputation (/reputation give) ### Data Collected When Enabled + These items will be automatically collected if a bot is configured to perform certain actions by a server manager. These features are always opt-in, and thus this data will not be collected unless the corresponding feature is enabled. -* API Token & URL (/settings guild pterodactyl) -* Counters (/admin counter) - +- API Token & URL (/settings guild pterodactyl) +- Counters (/admin counter) ### Data Collected Automatically + This data may be collected automatically. This data is used to provide statistics or history data. For any bots that collect this data, it is necessary for features of said bot. -* Username ID (Unique identifier) -* Guild ID (Unique identifier) -* Any data needed for standard operation of Discord bots, such as server permissions -* Credits (/profile view) -* Points (/profile view) -* Levels (/profile view) -* Timestamps (Audit logs and all your data that we store) - +- Username ID (Unique identifier) +- Guild ID (Unique identifier) +- Any data needed for standard operation of Discord bots, such as server permissions +- Credits (/profile view) +- Points (/profile view) +- Levels (/profile view) +- Timestamps (Audit logs and all your data that we store) ### Data Storage + All stored data is kept on protected servers. While storage methods vary, most data is kept within password-protected databases such as [MongoDB Atlas](https://atlas.mongodb.com/). Please keep in mind that even with these protections, no data can ever be 100% secure. All efforts are taken to keep your data secure and private, but its absolute security cannot be guaranteed. - - ### Feedback + Feedback on Xyter bot and service is appreciated. When you submit comments, suggestions, bug reports, and any other forms of feedback, you forego any rights to the content, title, or intent of the provided feedback. Additionally, the feedback may be utilized in any way. - - ### Agreement + By adding Xyter bot to your server or using this bot or service in any way, you are consenting to the policies outlined in this document. In addition, you (the server manager) are agreeing to inform your members of the [Developer Terms of Service](https://discordapp.com/developers/docs/legal) and the contents of this document. If you, the server manager, do not agree to this document, you may remove the bot(s) from the server. If you, the server member, do not agree to this document, you may leave the server that contains the bot(s). If you, the service user, do not agree to this document, you may revoke authorization of the application(s) in your 'Authorized Apps' menu. Changes to This Privacy Policy diff --git a/SECURITY.md b/SECURITY.md index 5ad31c6..4933326 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,10 +2,10 @@ ## Supported Versions -| Version | Supported | -| ------- | ------------------ | +| Version | Supported | +| ---------- | ------------------ | | 2022.4.x | :white_check_mark: | -| < 2022.4.x | :x: | +| < 2022.4.x | :x: | ## Reporting a Vulnerability From d4d7019df700573a34ffa83c06212c62a5f60182 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:14:56 +0000 Subject: [PATCH 06/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 07d5cdd according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/8f0d6932-6fff-4855-8ab9-f43355cfadf0/ --- .vscode/extensions.json | 104 ++++++++++++++++++++-------------------- .vscode/settings.json | 52 ++++++++++---------- PRIVACY.md | 50 +++++++++---------- SECURITY.md | 6 +-- 4 files changed, 104 insertions(+), 108 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 4008731..a17e74d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,52 +1,52 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. - // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp - // List of extensions which should be recommended for users of this workspace. - "recommendations": [ - "abrahamwilliam007.es7-javascript-class-snippets", - "christian-kohler.npm-intellisense", - "christian-kohler.path-intellisense", - "dbaeumer.vscode-eslint", - "donjayamanne.githistory", - "eamodio.gitlens", - "esbenp.prettier-vscode", - "github.github-vscode-theme", - "irongeek.vscode-env", - "xabikos.javascriptsnippets", - "wix.vscode-import-cost", - "vscode-icons-team.vscode-icons", - "visualstudioexptteam.vscodeintellicode", - "teledemic.branch-warnings", - "tabnine.tabnine-vscode", - "streetsidesoftware.code-spell-checker", - "seatonjiang.gitmoji-vscode", - "sburg.vscode-javascript-booster", - "kisstkondoros.vscode-codemetrics", - "mgmcdermott.vscode-language-babel", - "mhutchie.git-graph", - "mikestead.dotenv", - "mongodb.mongodb-vscode", - "ms-vscode-remote.remote-wsl-recommender", - "ms-vscode.js-debug", - "ms-vscode.js-debug-companion", - "ms-vscode.references-view", - "ms-vscode.vscode-js-profile-table", - "pflannery.vscode-versionlens", - "adpyke.codesnap", - "anan.devdocstab", - "axosoft.gitkraken-glo", - "gruntfuggly.todo-tree", - "kiteco.kite", - "lkytal.pomodoro", - "wayou.vscode-todo-highlight", - "johnpapa.vscode-peacock", - "stepsize.stepsize", - "nicoespeon.abracadabra", - "sonarsource.sonarlint-vscode", - "nicoespeon.hocus-pocus", - "aaron-bond.better-comments", - "oouo-diogo-perdigao.docthis" - ], - // List of extensions recommended by VS Code that should not be recommended for users of this workspace. - "unwantedRecommendations": [] -} +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "abrahamwilliam007.es7-javascript-class-snippets", + "christian-kohler.npm-intellisense", + "christian-kohler.path-intellisense", + "dbaeumer.vscode-eslint", + "donjayamanne.githistory", + "eamodio.gitlens", + "esbenp.prettier-vscode", + "github.github-vscode-theme", + "irongeek.vscode-env", + "xabikos.javascriptsnippets", + "wix.vscode-import-cost", + "vscode-icons-team.vscode-icons", + "visualstudioexptteam.vscodeintellicode", + "teledemic.branch-warnings", + "tabnine.tabnine-vscode", + "streetsidesoftware.code-spell-checker", + "seatonjiang.gitmoji-vscode", + "sburg.vscode-javascript-booster", + "kisstkondoros.vscode-codemetrics", + "mgmcdermott.vscode-language-babel", + "mhutchie.git-graph", + "mikestead.dotenv", + "mongodb.mongodb-vscode", + "ms-vscode-remote.remote-wsl-recommender", + "ms-vscode.js-debug", + "ms-vscode.js-debug-companion", + "ms-vscode.references-view", + "ms-vscode.vscode-js-profile-table", + "pflannery.vscode-versionlens", + "adpyke.codesnap", + "anan.devdocstab", + "axosoft.gitkraken-glo", + "gruntfuggly.todo-tree", + "kiteco.kite", + "lkytal.pomodoro", + "wayou.vscode-todo-highlight", + "johnpapa.vscode-peacock", + "stepsize.stepsize", + "nicoespeon.abracadabra", + "sonarsource.sonarlint-vscode", + "nicoespeon.hocus-pocus", + "aaron-bond.better-comments", + "oouo-diogo-perdigao.docthis" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 76d8e57..38d1af9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,26 +1,26 @@ -{ - "editor.bracketPairColorization.enabled": true, - "editor.codeActionsOnSave": ["source.formatDocument", "source.fixAll.eslint"], - "editor.cursorBlinking": "phase", - "editor.cursorSmoothCaretAnimation": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.fontFamily": "Cascadia Code", - "editor.fontLigatures": true, - "editor.formatOnSave": true, - "editor.guides.bracketPairs": "active", - "editor.minimap.maxColumn": 200, - "editor.minimap.renderCharacters": false, - "editor.minimap.showSlider": "always", - "editor.tabSize": 2, - "editor.wordWrapColumn": 100, - "files.eol": "\n", - "files.trimTrailingWhitespace": true, - "cSpell.customDictionaries": { - "custom-dictionary-workspace": { - "name": "custom-dictionary-workspace", - "path": "${workspaceFolder:xyter}/.cspell/custom-dictionary-workspace.txt", - "addWords": true, - "scope": "workspace" - } - } -} +{ + "editor.bracketPairColorization.enabled": true, + "editor.codeActionsOnSave": ["source.formatDocument", "source.fixAll.eslint"], + "editor.cursorBlinking": "phase", + "editor.cursorSmoothCaretAnimation": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.fontFamily": "Cascadia Code", + "editor.fontLigatures": true, + "editor.formatOnSave": true, + "editor.guides.bracketPairs": "active", + "editor.minimap.maxColumn": 200, + "editor.minimap.renderCharacters": false, + "editor.minimap.showSlider": "always", + "editor.tabSize": 2, + "editor.wordWrapColumn": 100, + "files.eol": "\n", + "files.trimTrailingWhitespace": true, + "cSpell.customDictionaries": { + "custom-dictionary-workspace": { + "name": "custom-dictionary-workspace", + "path": "${workspaceFolder:xyter}/.cspell/custom-dictionary-workspace.txt", + "addWords": true, + "scope": "workspace" + } + } +} diff --git a/PRIVACY.md b/PRIVACY.md index f07fa94..4bffac4 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -7,54 +7,50 @@ This document entails the privacy policy and agreement that you accept when addi This privacy policy applies to **Xyter**#7721 (949998000401436673) - - - ### Terminology -* **Server Manager** - Anyone who has the ability to add a bot to a server or configure the bot for the server. This is usually an administrator or moderator -* **Server Member** - Anyone who is a member of server to which one of the bots has been added -* **Service User** - Anyone who authorizes an application (logs in) for a scope that provides additional information - +- **Server Manager** - Anyone who has the ability to add a bot to a server or configure the bot for the server. This is usually an administrator or moderator +- **Server Member** - Anyone who is a member of server to which one of the bots has been added +- **Service User** - Anyone who authorizes an application (logs in) for a scope that provides additional information ### Data Collected By Command -The following items may be collected and stored when intentionally provided by a user (usually by means of a command). This data will not be collected automatically. When providing data in this way, you forego any rights to the content of the data provided. -* Server configurations (/settings guild) -* Data and content for automated tasks (/shop roles) -* Locale (/settings user language) -* Reputation (/reputation give) +The following items may be collected and stored when intentionally provided by a user (usually by means of a command). This data will not be collected automatically. When providing data in this way, you forego any rights to the content of the data provided. + +- Server configurations (/settings guild) +- Data and content for automated tasks (/shop roles) +- Locale (/settings user language) +- Reputation (/reputation give) ### Data Collected When Enabled + These items will be automatically collected if a bot is configured to perform certain actions by a server manager. These features are always opt-in, and thus this data will not be collected unless the corresponding feature is enabled. -* API Token & URL (/settings guild pterodactyl) -* Counters (/admin counter) - +- API Token & URL (/settings guild pterodactyl) +- Counters (/admin counter) ### Data Collected Automatically + This data may be collected automatically. This data is used to provide statistics or history data. For any bots that collect this data, it is necessary for features of said bot. -* Username ID (Unique identifier) -* Guild ID (Unique identifier) -* Any data needed for standard operation of Discord bots, such as server permissions -* Credits (/profile view) -* Points (/profile view) -* Levels (/profile view) -* Timestamps (Audit logs and all your data that we store) - +- Username ID (Unique identifier) +- Guild ID (Unique identifier) +- Any data needed for standard operation of Discord bots, such as server permissions +- Credits (/profile view) +- Points (/profile view) +- Levels (/profile view) +- Timestamps (Audit logs and all your data that we store) ### Data Storage + All stored data is kept on protected servers. While storage methods vary, most data is kept within password-protected databases such as [MongoDB Atlas](https://atlas.mongodb.com/). Please keep in mind that even with these protections, no data can ever be 100% secure. All efforts are taken to keep your data secure and private, but its absolute security cannot be guaranteed. - - ### Feedback + Feedback on Xyter bot and service is appreciated. When you submit comments, suggestions, bug reports, and any other forms of feedback, you forego any rights to the content, title, or intent of the provided feedback. Additionally, the feedback may be utilized in any way. - - ### Agreement + By adding Xyter bot to your server or using this bot or service in any way, you are consenting to the policies outlined in this document. In addition, you (the server manager) are agreeing to inform your members of the [Developer Terms of Service](https://discordapp.com/developers/docs/legal) and the contents of this document. If you, the server manager, do not agree to this document, you may remove the bot(s) from the server. If you, the server member, do not agree to this document, you may leave the server that contains the bot(s). If you, the service user, do not agree to this document, you may revoke authorization of the application(s) in your 'Authorized Apps' menu. Changes to This Privacy Policy diff --git a/SECURITY.md b/SECURITY.md index 5ad31c6..4933326 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,10 +2,10 @@ ## Supported Versions -| Version | Supported | -| ------- | ------------------ | +| Version | Supported | +| ---------- | ------------------ | | 2022.4.x | :white_check_mark: | -| < 2022.4.x | :x: | +| < 2022.4.x | :x: | ## Reporting a Vulnerability From 0472605a4b04de423e1df7ad5acac6444e24097b Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:19:10 +0000 Subject: [PATCH 07/40] Adds the appropriate return type for the method or function --- src/handlers/encryption.ts | 4 +++- src/helpers/pluralize.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/handlers/encryption.ts b/src/handlers/encryption.ts index 4624d74..7c81347 100644 --- a/src/handlers/encryption.ts +++ b/src/handlers/encryption.ts @@ -4,7 +4,9 @@ import { secretKey, algorithm } from "@config/encryption"; const iv = crypto.randomBytes(16); -const encrypt = (text: any) => { +const encrypt = (text: any): {iv: error; +content: error; +} => { const cipher = crypto.createCipheriv(algorithm, secretKey, iv); const encrypted = Buffer.concat([cipher.update(text), cipher.final()]); diff --git a/src/helpers/pluralize.ts b/src/helpers/pluralize.ts index c255427..491393b 100644 --- a/src/helpers/pluralize.ts +++ b/src/helpers/pluralize.ts @@ -1,6 +1,6 @@ import logger from "@root/logger"; -export default (count: number, noun: string, suffix?: string) => { +export default (count: number, noun: string, suffix?: string): string => { const result = `${count} ${noun}${count !== 1 ? suffix || "s" : ""}`; logger?.verbose(`Pluralized ${count} to ${result}`); return result; From 6fb549946a5e9dc83ce2789f790123315ba7dd23 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:19:22 +0000 Subject: [PATCH 08/40] Format code with standardjs and prettier --- src/handlers/encryption.ts | 4 +--- src/helpers/pluralize.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/handlers/encryption.ts b/src/handlers/encryption.ts index 7c81347..5e07d89 100644 --- a/src/handlers/encryption.ts +++ b/src/handlers/encryption.ts @@ -4,9 +4,7 @@ import { secretKey, algorithm } from "@config/encryption"; const iv = crypto.randomBytes(16); -const encrypt = (text: any): {iv: error; -content: error; -} => { +const encrypt = (text: any): { iv: error; content: error } => { const cipher = crypto.createCipheriv(algorithm, secretKey, iv); const encrypted = Buffer.concat([cipher.update(text), cipher.final()]); diff --git a/src/helpers/pluralize.ts b/src/helpers/pluralize.ts index 491393b..c9ad1ad 100644 --- a/src/helpers/pluralize.ts +++ b/src/helpers/pluralize.ts @@ -1,6 +1,6 @@ import logger from "@root/logger"; -export default (count: number, noun: string, suffix?: string): string => { +export default (count: number, noun: string, suffix?: string): string => { const result = `${count} ${noun}${count !== 1 ? suffix || "s" : ""}`; logger?.verbose(`Pluralized ${count} to ${result}`); return result; From 0e17d18141232c4867de4a94de4f82c1a947fb5c Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 10:25:31 +0200 Subject: [PATCH 09/40] Update index.ts --- src/index.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index c083eae..10146ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,18 +9,14 @@ import schedules from "@schedules"; import events from "@handlers/events"; import commands from "@handlers/commands"; -async function main() { const client = new Client({ intents, }); - await database(); - await schedules(client); + database(); + schedules(client); - await commands(client); - await events(client); + commands(client); + events(client); - await client.login(token); -} - -main(); + client.login(token); From adfcfc351ea14227dfd4a5433b9879423ef3d76f Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:25:43 +0000 Subject: [PATCH 10/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 0e17d18 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/4fb6bb32-c06b-48bd-834b-0bcb329b4e85/ --- src/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 10146ea..eb0f8fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,14 +9,14 @@ import schedules from "@schedules"; import events from "@handlers/events"; import commands from "@handlers/commands"; - const client = new Client({ - intents, - }); +const client = new Client({ + intents, +}); - database(); - schedules(client); +database(); +schedules(client); - commands(client); - events(client); +commands(client); +events(client); - client.login(token); +client.login(token); From 89a2001b217dc192f52a95ea602cc336bb387cde Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:27:02 +0000 Subject: [PATCH 11/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 0e17d18 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/5fe95853-443c-42e6-8991-b4f60bc662b9/ --- src/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 10146ea..eb0f8fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,14 +9,14 @@ import schedules from "@schedules"; import events from "@handlers/events"; import commands from "@handlers/commands"; - const client = new Client({ - intents, - }); +const client = new Client({ + intents, +}); - database(); - schedules(client); +database(); +schedules(client); - commands(client); - events(client); +commands(client); +events(client); - client.login(token); +client.login(token); From 61a6f8c7c3ef929106169a974123e2dc26b7eb25 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 10:28:05 +0200 Subject: [PATCH 12/40] Update index.ts --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 10146ea..b3779fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,7 @@ import schedules from "@schedules"; import events from "@handlers/events"; import commands from "@handlers/commands"; +const main = async () => { const client = new Client({ intents, }); @@ -20,3 +21,6 @@ import commands from "@handlers/commands"; events(client); client.login(token); +} + +main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)}) From 98965cf9525a361e18eee81e2214ec8267579625 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:28:25 +0000 Subject: [PATCH 13/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 61a6f8c according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/3a37bf8c-ce14-4906-aea6-f735b702251d/ --- src/index.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index b3779fe..61a0290 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,13 +14,19 @@ const main = async () => { intents, }); - database(); - schedules(client); + database(); + schedules(client); - commands(client); - events(client); + commands(client); + events(client); - client.login(token); -} + client.login(token); +}; -main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)}) +main() + .then(async () => { + logger.silly("Main process started"); + }) + .catch(async (err) => { + logger.error(err); + }); From d78502b373ceb9c2db058ac1a28abbaaae4c2370 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:29:20 +0000 Subject: [PATCH 14/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 61a6f8c according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/5748ec0d-dd21-431e-abe5-6b7058ce1e4d/ --- src/index.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index b3779fe..61a0290 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,13 +14,19 @@ const main = async () => { intents, }); - database(); - schedules(client); + database(); + schedules(client); - commands(client); - events(client); + commands(client); + events(client); - client.login(token); -} + client.login(token); +}; -main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)}) +main() + .then(async () => { + logger.silly("Main process started"); + }) + .catch(async (err) => { + logger.error(err); + }); From a2f7331a8b0364ae86c8895c653d60aa053cfbde Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 10:29:58 +0200 Subject: [PATCH 15/40] Update index.ts --- src/index.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index b3779fe..c7f3d44 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,11 +14,14 @@ const main = async () => { intents, }); - database(); - schedules(client); + database().then(async () => {logger.silly("Database process started")}).catch(async (err) => {logger.error(err)}) +schedules(client).then(async () => {logger.silly("Schedules process started")}).catch(async (err) => {logger.error(err)}) + + + commands(client).then(async () => {logger.silly("Commands process started")}).catch(async (err) => {logger.error(err)}) + + events(client).then(async () => {logger.silly("Events process started")}).catch(async (err) => {logger.error(err)}) - commands(client); - events(client); client.login(token); } From 6ad5fb594f89009da1c2bf4019919330ba2c7468 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:30:10 +0000 Subject: [PATCH 16/40] Format code with standardjs and prettier This commit fixes the style issues introduced in a2f7331 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/6a5bea9d-2373-4948-a812-6408f021af8c/ --- src/index.ts | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index c7f3d44..9e86641 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,16 +14,44 @@ const main = async () => { intents, }); - database().then(async () => {logger.silly("Database process started")}).catch(async (err) => {logger.error(err)}) -schedules(client).then(async () => {logger.silly("Schedules process started")}).catch(async (err) => {logger.error(err)}) + database() + .then(async () => { + logger.silly("Database process started"); + }) + .catch(async (err) => { + logger.error(err); + }); + schedules(client) + .then(async () => { + logger.silly("Schedules process started"); + }) + .catch(async (err) => { + logger.error(err); + }); + commands(client) + .then(async () => { + logger.silly("Commands process started"); + }) + .catch(async (err) => { + logger.error(err); + }); - commands(client).then(async () => {logger.silly("Commands process started")}).catch(async (err) => {logger.error(err)}) + events(client) + .then(async () => { + logger.silly("Events process started"); + }) + .catch(async (err) => { + logger.error(err); + }); - events(client).then(async () => {logger.silly("Events process started")}).catch(async (err) => {logger.error(err)}) + client.login(token); +}; - - client.login(token); -} - -main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)}) +main() + .then(async () => { + logger.silly("Main process started"); + }) + .catch(async (err) => { + logger.error(err); + }); From 45d9588c66013652876a7878bc9ae97eadb48699 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:30:18 +0000 Subject: [PATCH 17/40] Format code with standardjs and prettier This commit fixes the style issues introduced in a2f7331 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/9baf351b-16dd-4add-80de-54a38c3ce023/ --- src/index.ts | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index c7f3d44..9e86641 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,16 +14,44 @@ const main = async () => { intents, }); - database().then(async () => {logger.silly("Database process started")}).catch(async (err) => {logger.error(err)}) -schedules(client).then(async () => {logger.silly("Schedules process started")}).catch(async (err) => {logger.error(err)}) + database() + .then(async () => { + logger.silly("Database process started"); + }) + .catch(async (err) => { + logger.error(err); + }); + schedules(client) + .then(async () => { + logger.silly("Schedules process started"); + }) + .catch(async (err) => { + logger.error(err); + }); + commands(client) + .then(async () => { + logger.silly("Commands process started"); + }) + .catch(async (err) => { + logger.error(err); + }); - commands(client).then(async () => {logger.silly("Commands process started")}).catch(async (err) => {logger.error(err)}) + events(client) + .then(async () => { + logger.silly("Events process started"); + }) + .catch(async (err) => { + logger.error(err); + }); - events(client).then(async () => {logger.silly("Events process started")}).catch(async (err) => {logger.error(err)}) + client.login(token); +}; - - client.login(token); -} - -main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)}) +main() + .then(async () => { + logger.silly("Main process started"); + }) + .catch(async (err) => { + logger.error(err); + }); From f02290b065d9c68036623713dee834f63f6d8499 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:32:29 +0000 Subject: [PATCH 18/40] Format code with standardjs and prettier This commit fixes the style issues introduced in a6bb050 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/8d032216-17f3-4f71-9328-14160eaf3b90/ --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 280fa91..9e86641 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,6 @@ const main = async () => { intents, }); - database() .then(async () => { logger.silly("Database process started"); From c49b8b48379be0cf7a08827e91c0993ef2830ade Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:33:43 +0000 Subject: [PATCH 19/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 69cbbaa according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/a0b957b7-58e0-4541-9efe-b33b6bb3494c/ --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 05c712d..9e86641 100644 --- a/src/index.ts +++ b/src/index.ts @@ -55,4 +55,3 @@ main() .catch(async (err) => { logger.error(err); }); - From 5f74f022bcf0ad2764545fd0f30c6a23c2cec9fb Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:34:10 +0000 Subject: [PATCH 20/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 5d6017b according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/de3cd5ec-d2fa-4fa0-8ed2-9f3abdb3ce43/ --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 05c712d..9e86641 100644 --- a/src/index.ts +++ b/src/index.ts @@ -55,4 +55,3 @@ main() .catch(async (err) => { logger.error(err); }); - From a9938fac69fd376e7449f3c3138ae3ebdf873a26 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 08:34:25 +0000 Subject: [PATCH 21/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 390cdc0 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/ff1fb6ca-4dee-478b-a00f-bff5bbe35c82/ --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9e86641..5429d5e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,7 +47,6 @@ const main = async () => { client.login(token); }; - main() .then(async () => { logger.silly("Main process started"); From 9dbe6a83dbddbeb959a4fed74f3b65e0608cf054 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:32:28 +0200 Subject: [PATCH 22/40] Update lookup.ts --- src/plugins/utility/modules/lookup.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/utility/modules/lookup.ts b/src/plugins/utility/modules/lookup.ts index ac48a4d..98800b9 100644 --- a/src/plugins/utility/modules/lookup.ts +++ b/src/plugins/utility/modules/lookup.ts @@ -1,16 +1,13 @@ import axios from "axios"; -import { CommandInteraction, MessageEmbed } from "discord.js"; +import { CommandInteraction } from "discord.js"; import { successColor, errorColor, - footerText, - footerIcon, } from "@config/embed"; import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; -import logger from "@logger"; import embedBuilder from "@root/helpers/embedBuilder"; export default { From 8eec235dfd5a40336e9ecf453fa6969041f5af63 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:32:40 +0000 Subject: [PATCH 23/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 9dbe6a8 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/ea47e9d9-074f-4db5-af76-2dc328f01aed/ --- src/plugins/utility/modules/lookup.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/utility/modules/lookup.ts b/src/plugins/utility/modules/lookup.ts index 98800b9..caf97e2 100644 --- a/src/plugins/utility/modules/lookup.ts +++ b/src/plugins/utility/modules/lookup.ts @@ -1,10 +1,7 @@ import axios from "axios"; import { CommandInteraction } from "discord.js"; -import { - successColor, - errorColor, -} from "@config/embed"; +import { successColor, errorColor } from "@config/embed"; import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; From 64ca8ce1134da61307cc1bb48c83d65998174c09 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:32:50 +0000 Subject: [PATCH 24/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 9dbe6a8 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/8e972825-22e6-4ab7-8625-e372745483c7/ --- src/plugins/utility/modules/lookup.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/utility/modules/lookup.ts b/src/plugins/utility/modules/lookup.ts index 98800b9..caf97e2 100644 --- a/src/plugins/utility/modules/lookup.ts +++ b/src/plugins/utility/modules/lookup.ts @@ -1,10 +1,7 @@ import axios from "axios"; import { CommandInteraction } from "discord.js"; -import { - successColor, - errorColor, -} from "@config/embed"; +import { successColor, errorColor } from "@config/embed"; import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; From bd1381408650112e4fa05a970a96b43742a56356 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:41:00 +0200 Subject: [PATCH 25/40] Update index.ts --- src/index.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5429d5e..3dee8bb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,19 +9,24 @@ import schedules from "@schedules"; import events from "@handlers/events"; import commands from "@handlers/commands"; +// Main process that starts all other sub processes const main = async () => { + // Initiate client object const client = new Client({ intents, }); - database() + // Start database manager + await database() .then(async () => { logger.silly("Database process started"); }) .catch(async (err) => { logger.error(err); }); - schedules(client) + + // Start schedule manager + await schedules(client) .then(async () => { logger.silly("Schedules process started"); }) @@ -29,7 +34,8 @@ const main = async () => { logger.error(err); }); - commands(client) + // Start command handler + await commands(client) .then(async () => { logger.silly("Commands process started"); }) @@ -37,7 +43,8 @@ const main = async () => { logger.error(err); }); - events(client) + // Start event handler + await events(client) .then(async () => { logger.silly("Events process started"); }) @@ -45,7 +52,8 @@ const main = async () => { logger.error(err); }); - client.login(token); + // Authorize with Discord's API + await client.login(token); }; main() .then(async () => { From 2f01a9022531de368128b40f6c63295cea9aad67 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:41:13 +0000 Subject: [PATCH 26/40] Format code with standardjs and prettier This commit fixes the style issues introduced in bd13814 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/2f4c1179-e251-4872-b1fe-17d9ee58c932/ --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3dee8bb..94fd85f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,9 +24,9 @@ const main = async () => { .catch(async (err) => { logger.error(err); }); - + // Start schedule manager - await schedules(client) + await schedules(client) .then(async () => { logger.silly("Schedules process started"); }) @@ -53,7 +53,7 @@ const main = async () => { }); // Authorize with Discord's API - await client.login(token); + await client.login(token); }; main() .then(async () => { From 547f66d88bcc799c95c581a46198bbcab0523182 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:41:19 +0000 Subject: [PATCH 27/40] Format code with standardjs and prettier This commit fixes the style issues introduced in bd13814 according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/f64d5a72-4b19-468a-a6b5-84f929d5db74/ --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3dee8bb..94fd85f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,9 +24,9 @@ const main = async () => { .catch(async (err) => { logger.error(err); }); - + // Start schedule manager - await schedules(client) + await schedules(client) .then(async () => { logger.silly("Schedules process started"); }) @@ -53,7 +53,7 @@ const main = async () => { }); // Authorize with Discord's API - await client.login(token); + await client.login(token); }; main() .then(async () => { From 8d5dc5dd51caa2d0b48488ad81ef0fa6dacf5a9c Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:46:11 +0200 Subject: [PATCH 28/40] Update index.ts --- src/logger/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index ae96924..45c6fe9 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -3,7 +3,7 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; -export default winston.createLogger({ +export default await winston.createLogger({ level: process.env.LOG_LEVEL || "silly", transports: [ new winston.transports.DailyRotateFile({ From b17dfa68617d3312982e2a11072a138268c5e054 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:46:34 +0200 Subject: [PATCH 29/40] Update index.ts --- src/logger/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index 45c6fe9..ae96924 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -3,7 +3,7 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; -export default await winston.createLogger({ +export default winston.createLogger({ level: process.env.LOG_LEVEL || "silly", transports: [ new winston.transports.DailyRotateFile({ From 021e30c382000d9506da881d4f3920839d34a8d1 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:46:45 +0200 Subject: [PATCH 30/40] Update index.ts --- src/logger/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index ae96924..45c6fe9 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -3,7 +3,7 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; -export default winston.createLogger({ +export default await winston.createLogger({ level: process.env.LOG_LEVEL || "silly", transports: [ new winston.transports.DailyRotateFile({ From e69f09c9c6a9336c92f9b20052fc800e1a5a9b1e Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:48:50 +0200 Subject: [PATCH 31/40] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 94fd85f..46bb504 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ const main = async () => { // Start database manager await database() .then(async () => { - logger.silly("Database process started"); + await logger.silly("Database process started"); }) .catch(async (err) => { logger.error(err); From 1bf45ba20d9a7e2a04d640662c4daaea2fb8cb5d Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:51:25 +0200 Subject: [PATCH 32/40] Update index.ts --- src/logger/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index 45c6fe9..8d95224 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -3,7 +3,10 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; -export default await winston.createLogger({ +module.exports = { + // Logger initialized async-hronously + logger: async () => { +return winston.createLogger({ level: process.env.LOG_LEVEL || "silly", transports: [ new winston.transports.DailyRotateFile({ @@ -24,3 +27,4 @@ export default await winston.createLogger({ }), ], }); + }} From 58e1f3a2bb452c2763d224a34f4ba2fe3a20278a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:51:37 +0000 Subject: [PATCH 33/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 1bf45ba according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/e72eada3-2ce9-4223-b070-ed543abe2ba9/ --- src/logger/index.ts | 49 ++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index 8d95224..c82f2ae 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -4,27 +4,30 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; module.exports = { - // Logger initialized async-hronously - logger: async () => { -return winston.createLogger({ - level: process.env.LOG_LEVEL || "silly", - transports: [ - new winston.transports.DailyRotateFile({ - filename: "logs/combined-%DATE%.log", - datePattern: "YYYY-MM-DD", - maxFiles: "14d", - format: combine(timestamp(), json()), - }), - new winston.transports.Console({ - format: combine( - colorize({ all: true }), - timestamp({ - format: "YYYY-MM-DD HH:MM:ss", + // Logger initialized async-hronously + logger: async () => { + return winston.createLogger({ + level: process.env.LOG_LEVEL || "silly", + transports: [ + new winston.transports.DailyRotateFile({ + filename: "logs/combined-%DATE%.log", + datePattern: "YYYY-MM-DD", + maxFiles: "14d", + format: combine(timestamp(), json()), }), - align(), - printf((info) => `[${info.timestamp}] ${info.level}: ${info.message}`) - ), - }), - ], -}); - }} + new winston.transports.Console({ + format: combine( + colorize({ all: true }), + timestamp({ + format: "YYYY-MM-DD HH:MM:ss", + }), + align(), + printf( + (info) => `[${info.timestamp}] ${info.level}: ${info.message}` + ) + ), + }), + ], + }); + }, +}; From 017349c59aaceb6c970af2edfda05bd426e6ac53 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:51:45 +0000 Subject: [PATCH 34/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 1bf45ba according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/0e77e7e1-b401-4c59-8430-b16034d661e0/ --- src/logger/index.ts | 49 ++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/src/logger/index.ts b/src/logger/index.ts index 8d95224..c82f2ae 100644 --- a/src/logger/index.ts +++ b/src/logger/index.ts @@ -4,27 +4,30 @@ import "winston-daily-rotate-file"; const { combine, timestamp, printf, colorize, align, json } = winston.format; module.exports = { - // Logger initialized async-hronously - logger: async () => { -return winston.createLogger({ - level: process.env.LOG_LEVEL || "silly", - transports: [ - new winston.transports.DailyRotateFile({ - filename: "logs/combined-%DATE%.log", - datePattern: "YYYY-MM-DD", - maxFiles: "14d", - format: combine(timestamp(), json()), - }), - new winston.transports.Console({ - format: combine( - colorize({ all: true }), - timestamp({ - format: "YYYY-MM-DD HH:MM:ss", + // Logger initialized async-hronously + logger: async () => { + return winston.createLogger({ + level: process.env.LOG_LEVEL || "silly", + transports: [ + new winston.transports.DailyRotateFile({ + filename: "logs/combined-%DATE%.log", + datePattern: "YYYY-MM-DD", + maxFiles: "14d", + format: combine(timestamp(), json()), }), - align(), - printf((info) => `[${info.timestamp}] ${info.level}: ${info.message}`) - ), - }), - ], -}); - }} + new winston.transports.Console({ + format: combine( + colorize({ all: true }), + timestamp({ + format: "YYYY-MM-DD HH:MM:ss", + }), + align(), + printf( + (info) => `[${info.timestamp}] ${info.level}: ${info.message}` + ) + ), + }), + ], + }); + }, +}; From 9780e8c32c3047996d75473d088eabdc7c2f41f1 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 17 May 2022 11:52:45 +0200 Subject: [PATCH 35/40] Update index.ts --- src/index.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index 46bb504..01ae110 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,43 +22,44 @@ const main = async () => { await logger.silly("Database process started"); }) .catch(async (err) => { - logger.error(err); + await logger.error(err); }); // Start schedule manager await schedules(client) .then(async () => { - logger.silly("Schedules process started"); + await logger.silly("Schedules process started"); }) .catch(async (err) => { - logger.error(err); + await logger.error(err); }); // Start command handler await commands(client) .then(async () => { - logger.silly("Commands process started"); + await logger.silly("Commands process started"); }) .catch(async (err) => { - logger.error(err); + await logger.error(err); }); // Start event handler await events(client) .then(async () => { - logger.silly("Events process started"); + await logger.silly("Events process started"); }) .catch(async (err) => { - logger.error(err); + await logger.error(err); }); // Authorize with Discord's API await client.login(token); }; -main() + +await main() .then(async () => { - logger.silly("Main process started"); + await logger.silly("Main process started"); }) .catch(async (err) => { - logger.error(err); + await logger.error(err); }); From 9a528e98fbf08b9cf40501836af989e237c98180 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:52:56 +0000 Subject: [PATCH 36/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 9780e8c according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/dcd0e7f9-fa2c-4994-b383-8bbe416990d2/ --- src/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index 01ae110..07562aa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,25 +31,25 @@ const main = async () => { await logger.silly("Schedules process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Start command handler await commands(client) .then(async () => { - await logger.silly("Commands process started"); + await logger.silly("Commands process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Start event handler await events(client) .then(async () => { - await logger.silly("Events process started"); + await logger.silly("Events process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Authorize with Discord's API @@ -58,8 +58,8 @@ const main = async () => { await main() .then(async () => { - await logger.silly("Main process started"); + await logger.silly("Main process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); From dc837ecd974204212c51a9cd3fcf5260ee397145 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 09:53:03 +0000 Subject: [PATCH 37/40] Format code with standardjs and prettier This commit fixes the style issues introduced in 9780e8c according to the output from standardjs and prettier. Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/c3aef707-607b-4b3e-a03c-3e84dbc77e7f/ --- src/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index 01ae110..07562aa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,25 +31,25 @@ const main = async () => { await logger.silly("Schedules process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Start command handler await commands(client) .then(async () => { - await logger.silly("Commands process started"); + await logger.silly("Commands process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Start event handler await events(client) .then(async () => { - await logger.silly("Events process started"); + await logger.silly("Events process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); // Authorize with Discord's API @@ -58,8 +58,8 @@ const main = async () => { await main() .then(async () => { - await logger.silly("Main process started"); + await logger.silly("Main process started"); }) .catch(async (err) => { - await logger.error(err); + await logger.error(err); }); From eeac9335e9e05c266224a33faf66878006ec724b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 18 May 2022 07:26:30 +0000 Subject: [PATCH 38/40] fix: upgrade @discordjs/builders from 0.12.0 to 0.13.0 Snyk has created this PR to upgrade @discordjs/builders from 0.12.0 to 0.13.0. See this package in npm: https://www.npmjs.com/package/@discordjs/builders See this project in Snyk: https://app.snyk.io/org/zyner/project/4ad0ecd9-b57c-4594-a520-da974699cb93?utm_source=github&utm_medium=referral&page=upgrade-pr --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5ca226..9596c22 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "email": "vermium@zyner.org" }, "dependencies": { - "@discordjs/builders": "^0.12.0", + "@discordjs/builders": "^0.13.0", "@discordjs/rest": "^0.4.0", "axios": "^0.26.0", "chance": "^1.1.8", From 4dcd031f3b027452285ffac3ba84984647148717 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 18 May 2022 07:26:34 +0000 Subject: [PATCH 39/40] fix: upgrade discord-api-types from 0.31.2 to 0.32.0 Snyk has created this PR to upgrade discord-api-types from 0.31.2 to 0.32.0. See this package in npm: https://www.npmjs.com/package/discord-api-types See this project in Snyk: https://app.snyk.io/org/zyner/project/4ad0ecd9-b57c-4594-a520-da974699cb93?utm_source=github&utm_medium=referral&page=upgrade-pr --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5ca226..ac3ef1d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "chance": "^1.1.8", "common": "^0.2.5", "crypto": "^1.0.1", - "discord-api-types": "^0.31.0", + "discord-api-types": "^0.32.0", "discord.js": "^13.6.0", "i18next": "^21.6.13", "mongoose": "^6.2.3", From 21e2edd1f51ba2373297b8d127534f9c3ee8ce03 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 19 May 2022 07:51:58 +0000 Subject: [PATCH 40/40] fix: upgrade axios from 0.26.1 to 0.27.2 Snyk has created this PR to upgrade axios from 0.26.1 to 0.27.2. See this package in npm: https://www.npmjs.com/package/axios See this project in Snyk: https://app.snyk.io/org/zyner/project/4ad0ecd9-b57c-4594-a520-da974699cb93?utm_source=github&utm_medium=referral&page=upgrade-pr --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5ca226..6100a44 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "dependencies": { "@discordjs/builders": "^0.12.0", "@discordjs/rest": "^0.4.0", - "axios": "^0.26.0", + "axios": "^0.27.2", "chance": "^1.1.8", "common": "^0.2.5", "crypto": "^1.0.1",