Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ZPTXDev/Warden
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.3.0-next.6
Choose a base ref
...
head repository: ZPTXDev/Warden
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: next
Choose a head ref
Loading
Showing with 9,715 additions and 1,918 deletions.
  1. +21 −8 .eslintrc.json
  2. +2 −0 .github/CODEOWNERS
  3. +3 −0 .github/FUNDING.yml
  4. +20 −16 .github/ISSUE_TEMPLATE/bug_report.md
  5. +1 −0 .github/ISSUE_TEMPLATE/config.yml
  6. +14 −11 .github/ISSUE_TEMPLATE/feature_request.md
  7. +27 −0 .github/PULL_REQUEST_TEMPLATE.md
  8. +132 −0 .github/commitlint.config.cjs
  9. +20 −0 .github/dependabot.yml
  10. +30 −0 .github/labeler.yml
  11. +77 −0 .github/workflows/analyze.yml
  12. +51 −0 .github/workflows/automate.yml
  13. +30 −0 .github/workflows/automerge.yml
  14. +0 −71 .github/workflows/codeql-analysis.yml
  15. +0 −11 .github/workflows/commitlint.yml
  16. +32 −0 .github/workflows/crowdin.yml
  17. +19 −0 .github/workflows/labeler.yml
  18. +0 −15 .github/workflows/reviewdog.yml
  19. +0 −21 .github/workflows/semantic-release.yml
  20. +8 −4 .gitignore
  21. +8 −0 .prettierignore
  22. +7 −0 .prettierrc.json
  23. +65 −0 CONFIGURATION.md
  24. +68 −0 CONTRIBUTING.md
  25. +30 −18 README.md
  26. +0 −76 commands/avatar.js
  27. +0 −39 commands/cancel.js
  28. +0 −39 commands/disconnect.js
  29. +0 −26 commands/info.js
  30. +0 −27 commands/ping.js
  31. +0 −46 commands/prepend.js
  32. +0 −92 commands/say.js
  33. +8 −0 crowdin.yml
  34. +0 −3 data.js
  35. +0 −17 delete-commands.js
  36. +0 −31 deploy-commands.js
  37. +0 −7 enums.js
  38. +0 −83 functions.js
  39. +6 −0 locales/ceb/check.js
  40. +79 −0 locales/ceb/cmd.js
  41. +18 −0 locales/ceb/discord.js
  42. +4 −0 locales/ceb/misc.js
  43. +21 −0 locales/ceb/tts.js
  44. +6 −0 locales/en/check.js
  45. +93 −0 locales/en/cmd.js
  46. +18 −0 locales/en/discord.js
  47. +4 −0 locales/en/misc.js
  48. +29 −0 locales/en/tts.js
  49. +6 −0 locales/fil/check.js
  50. +79 −0 locales/fil/cmd.js
  51. +18 −0 locales/fil/discord.js
  52. +4 −0 locales/fil/misc.js
  53. +21 −0 locales/fil/tts.js
  54. +0 −248 main.js
  55. +5,207 −984 package-lock.json
  56. +35 −12 package.json
  57. +17 −0 scripts/delete-commands.js
  58. +46 −0 scripts/deploy-commands.js
  59. +27 −13 settings.example.json
  60. +1 −0 src/commands/avatar.d.ts
  61. +157 −0 src/commands/avatar.ts
  62. +43 −0 src/commands/cancel.ts
  63. +43 −0 src/commands/disconnect.ts
  64. +97 −0 src/commands/info.ts
  65. +48 −0 src/commands/ping.ts
  66. +197 −0 src/commands/say.ts
  67. +133 −0 src/commands/settings.ts
  68. +103 −0 src/components/buttons/prepend.ts
  69. +159 −0 src/components/selectmenus/language.ts
  70. +122 −0 src/components/selectmenus/settings.ts
  71. +12 −0 src/events/error.ts
  72. +13 −0 src/events/guildCreate.ts
  73. +23 −0 src/events/guildDelete.ts
  74. +36 −0 src/events/interactionCreate.d.ts
  75. +384 −0 src/events/interactionCreate.ts
  76. +50 −0 src/events/ready.ts
  77. +9 −0 src/events/shardDisconnect.ts
  78. +12 −0 src/events/shardError.ts
  79. +15 −0 src/events/shardResume.ts
  80. +9 −0 src/events/tts/connect.ts
  81. +28 −0 src/events/tts/queueFinish.ts
  82. +27 −0 src/events/tts/trackEnd.ts
  83. +17 −0 src/events/tts/trackStart.ts
  84. +110 −0 src/events/voiceStateUpdate.ts
  85. +12 −0 src/lib/DataHandler.d.ts
  86. +56 −0 src/lib/DataHandler.ts
  87. +113 −0 src/lib/PlayerHandler.ts
  88. +5 −0 src/lib/ReplyHandler.d.ts
  89. +223 −0 src/lib/ReplyHandler.ts
  90. +67 −0 src/lib/util/common.d.ts
  91. +63 −0 src/lib/util/common.ts
  92. +12 −0 src/lib/util/constants.ts
  93. +32 −0 src/lib/util/settings.d.ts
  94. +21 −0 src/lib/util/settings.ts
  95. +13 −0 src/lib/util/util.d.ts
  96. +456 −0 src/lib/util/util.ts
  97. +16 −0 src/main.d.ts
  98. +347 −0 src/main.ts
  99. +20 −0 tsconfig.json
29 changes: 21 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{
"extends": "eslint:recommended",
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"es6": true
"es2022": true
},
"parserOptions": {
"ecmaVersion": 2021
"ecmaVersion": 2022,
"sourceType": "module"
},
"ignorePatterns": ["locales/", "dist/", "scripts/"],
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"keyword-spacing": "error",
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
@@ -27,7 +36,8 @@
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-return-await": "error",
"no-shadow": "off",
"no-trailing-spaces": ["error"],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
@@ -44,6 +54,9 @@
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
"yoda": "error",
"@typescript-eslint/no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"@typescript-eslint/explicit-function-return-type": ["error", { "allowTypedFunctionExpressions": false }],
"@typescript-eslint/consistent-type-imports": ["error"]
}
}
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @ZPTXDev/development
/locales/ @ZPTXDev/localization
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [ZPTXDev, zapteryx]
36 changes: 20 additions & 16 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
---
name: Bug report
about: Report a bug for us to investigate and fix!
about: Something not working as intended, or affecting normal functionality.
title: ''
labels: bug
assignees: ''
labels: type:bug
assignees:
- zapteryx

---

**Describe the bug**
A clear and concise description of what the bug is.
What isn't working as intended, and what does it affect?

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Severity**
- [ ] Critical
- [ ] High
- [ ] Medium
- [ ] Low

**Expected behavior**
A clear and concise description of what you expected to happen.
**Affected branches**
- [ ] Stable
- [ ] Next

**Steps to reproduce**
Steps to reproduce the behavior. (e.g. click on a button, enter a value, etc. and see error)

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Expected behavior**
What is expected to happen?

**Additional context**
Add any other context about the problem here.
**Actual behavior**
What actually happens? Attach or add errors or screenshots here as well.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
25 changes: 14 additions & 11 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
---
name: Feature request
about: Come up with something useful for everyone!
about: Proposal for a new feature or improvement.
title: ''
labels: enhancement
assignees: ''
labels: type:enhancement
assignees:
- zapteryx

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the feature**
What feature are you proposing?

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Priority**
- [ ] High
- [ ] Medium
- [ ] Low

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**List the benefits of adding such a feature**
What will you gain from this feature?

**Additional context**
Add any other context or screenshots about the feature request here.
**Is this feature request related to a problem?**
Is there a problem with the current implementation (if any), or is there an issue that would be resolved with this feature?
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### Thank you for your interest in contributing!
Before proceeding, please review the [guidelines for contributing](https://github.com/ZPTXDev/Warden/blob/master/CONTRIBUTING.md).

- [ ] Are you targeting the `next` branch? (left side)
- [ ] Did you review the guidelines for contributing?
- [ ] Does your code pass linting checks?
- [ ] Is your code documented, if applicable? (Check if not applicable)
- [ ] Does this PR have a linked issue?

### Scope of change
- [ ] Major change
- [ ] Minor change
- [ ] Documentation only

### Type of change
- [ ] Bug fix
- [ ] Feature
- [ ] Other

### Priority
- [ ] Critical
- [ ] High
- [ ] Medium
- [ ] Low

### Description
Please describe the changes.
132 changes: 132 additions & 0 deletions .github/commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
module.exports = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
},
prompt: {
questions: {
type: {
description: "Select the type of change that you're committing",
enum: {
feat: {
description: 'A new feature',
title: 'Features',
emoji: '✨',
},
fix: {
description: 'A bug fix',
title: 'Bug Fixes',
emoji: '🐛',
},
docs: {
description: 'Documentation only changes',
title: 'Documentation',
emoji: '📚',
},
style: {
description:
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
title: 'Styles',
emoji: '💎',
},
refactor: {
description:
'A code change that neither fixes a bug nor adds a feature',
title: 'Code Refactoring',
emoji: '📦',
},
perf: {
description: 'A code change that improves performance',
title: 'Performance Improvements',
emoji: '🚀',
},
test: {
description: 'Adding missing tests or correcting existing tests',
title: 'Tests',
emoji: '🚨',
},
build: {
description:
'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
title: 'Builds',
emoji: '🛠',
},
ci: {
description:
'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
title: 'Continuous Integrations',
emoji: '⚙️',
},
chore: {
description: "Other changes that don't modify src or test files",
title: 'Chores',
emoji: '♻️',
},
revert: {
description: 'Reverts a previous commit',
title: 'Reverts',
emoji: '🗑',
},
},
},
scope: {
description:
'What is the scope of this change (e.g. component or file name)',
},
subject: {
description:
'Write a short, imperative tense description of the change',
},
body: {
description: 'Provide a longer description of the change',
},
isBreaking: {
description: 'Are there any breaking changes?',
},
breakingBody: {
description:
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
},
breaking: {
description: 'Describe the breaking changes',
},
isIssueAffected: {
description: 'Does this change affect any open issues?',
},
issuesBody: {
description:
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
},
issues: {
description: 'Add issue references (e.g. "fix #123", "re #123".)',
},
},
},
};
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -6,4 +6,24 @@ updates:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
target-branch: next
versioning-strategy: increase
labels:
- "affects:dependencies"
- "priority:p2"
- "status:tested"
- "status:confirmed"
- "type:enhancement"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
target-branch: next
labels:
- "affects:dependencies"
- "priority:p2"
- "status:tested"
- "status:confirmed"
- "type:enhancement"
30 changes: 30 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'priority:p0':
- '- \[x] Critical'
'priority:p1':
- '- \[x] High'
'priority:p2':
- '- \[x] Medium'
'priority:p3':
- '- \[x] Low'
'pr:type:feat':
- '(feat:|- \[x] Feature)'
'pr:type:fix':
- '(fix:|- \[x] Bug fix)'
'type:bug':
- '- \[x] Bug fix'
'type:enhancement':
- '(- \[x] Feature|- \[x] Other)'
'affects:documentation':
- '(- \[x] Documentation only|\bdoc[s]\b|\bdocumentation[s]\b)'
'affects:functionality':
- '\bfunctionalit(?:y|ies)\b'
'affects:locale':
- '(\blocale[s]?\b|\blocali(?:s|z)(?:e[d]?|ation)\b)'
'affects:permissions':
- '\bpermission[s]?\b'
'status:proposed':
- '.*'
'branch:stable':
- '- \[x] Stable'
'branch:next':
- '- \[x] Next'
Loading