Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
chore(release): version 2.2.0 (#618)
Browse files Browse the repository at this point in the history
* chore(deps): update lockfile

* feat(env_example): set prefix as array

* feat(env_example): add formats to 'PREFIX'

* feat(config): change 'prefix' to 'prefixes'

* feat(config): remove same character in 'prefixes'

* feat(env_example): separate main prefix and alternative prefixes

* feat(config): separate main prefix and alternative prefixes

* feat(config): main prefix shouldn't be added to alternative prefixes

* feat(MessageCreateEvent): add multi-prefix detection

* feat(MessageCreateEvent): bot mention should be checked first

* feat(MessageCreateEvent): change mention prefix detection

* feat(MessageCreateEvent): change mention prefix detection regex

* feat(CommandManager): handle custom prefix

* fix(HelpCommand): fix compiler issue

* fix(GeneralUtil): fix compiler issue

* fix(PlayCommand): fix compiler issue

* fix(SkipToCommand): fix compiler issue

* fix(ReadyEvent): fix compiler issue

* fix(config): fix wrong env value

* fix(MessageCreateEvent): fix wrong ID checking

* fix(CommandManager): fix wrong prefix checking

* fix(MessageCreateEvent): fix linter issue

* feat(GeneralUtil): add support for 'soundcloud.app.goo.gl'

* feat(lang/en): add 'categoryName' to each command category

* feat(commands): use localization on category metas

* feat(CommandContext): add non-command interaction reply

* fix(NowPlayingCommand): fix unable to get state in audio player causing the bot to restart

* chore(deps): bump got from 11.8.2 to 11.8.3 (#615)

Bumps [got](https://github.com/sindresorhus/got) from 11.8.2 to 11.8.3.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.8.2...v11.8.3)

---
updated-dependencies:
- dependency-name: got
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/node from 16.11.7 to 16.11.8 (#616)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.7 to 16.11.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(NowPlayingCommand): fix unable to get state in audio player causing the bot to restart

* chore(deps): upgrade lockfile

* chore(heroku): update on the config file too

* feat(lang/id): tambahkan 'categoryName' di setiap kategori command

* feat(lang/es): agregue 'categoryName' a cada categoría de comando

* chore(deps): bump youtube-dl-exec from 1.2.6 to 2.0.0

* fix(YTDLUtil): fix compiler issue

* chore(heroku): synchronize with env_example

* fix(YTDLUtil): remove unnecessary assertion due to linter error

* chore(deps): bump got from 11.8.2 to 11.8.3 (#619)

Bumps [got](https://github.com/sindresorhus/got) from 11.8.2 to 11.8.3.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v11.8.2...v11.8.3)

---
updated-dependencies:
- dependency-name: got
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/node from 16.11.7 to 16.11.9 (#621)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.7 to 16.11.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzrtamp <[email protected]>

* chore(deps): bump date-fns from 2.25.0 to 2.26.0 (#622)

Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.25.0 to 2.26.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](date-fns/date-fns@v2.25.0...v2.26.0)

---
updated-dependencies:
- dependency-name: date-fns
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump eslint from 8.2.0 to 8.3.0 (#623)

Bumps [eslint](https://github.com/eslint/eslint) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.2.0...v8.3.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): upgrade lockfile

* chore(release): version 2.2.0

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzrtamp <[email protected]>
Co-authored-by: mzrtamp <[email protected]>
  • Loading branch information
4 people authored Nov 22, 2021
1 parent cfcd398 commit 4cd3032
Show file tree
Hide file tree
Showing 22 changed files with 194 additions and 138 deletions.
12 changes: 9 additions & 3 deletions .env_example
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
# Example: DISCORD_TOKEN="NTE5NjQ2MjIxNTU2Nzc2OTcw.XAcEQQ.0gjhNbGeWBsKP6FVuIyZWlG2cMd"
DISCORD_TOKEN=""

# What should be the prefix of your bot?
# What should be the main prefix of your bot?
# Example: PREFIX="!"
# Default: !
PREFIX=""
# Default: "!"
MAIN_PREFIX=""

# What should be the alternative prefixes of your bot?
# Example: PREFIX=["?", "{mention}"]
# Formats: {mention} = bot mention
# Default: ["{mention}"]
ALT_PREFIX=[""]

# What should be your bot's embed color code? (hex)
# Example: EMBED_COLOR="3CAAFF"
Expand Down
33 changes: 19 additions & 14 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
"logo": "https://raw.githubusercontent.com/zhycorp/disc-11/main/.github/images/disc-11.png",
"env": {
"DISCORD_TOKEN": {
"description": "What is your Discord bot's token? Example: NTE5NjQ2MjIxNTU2Nzc2OTcw.XAcEQQ.0gjhNbGeWBsKP6FVuIyZWlG2cMd",
"description": "What is your Discord bot's token? | Example: NTE5NjQ2MjIxNTU2Nzc2OTcw.XAcEQQ.0gjhNbGeWBsKP6FVuIyZWlG2cMd",
"required": true
},
"PREFIX": {
"description": "What should be the prefix of your bot? Example: !",
"MAIN_PREFIX": {
"description": "What should be the main prefix of your bot? | Example: !",
"required": true,
"value": "!"
},
"ALT_PREFIX": {
"description": "What should be the alternative prefixes of your bot? | Example: [\"?\", \"{mention}\"] | Formats: {mention} = bot mention",
"required": false,
"value": "[\"{mention}\"]"
},
"EMBED_COLOR": {
"description": "What should be your bot's embed color code? (hex) | Example: 3CAAFF",
"required": false,
Expand All @@ -33,57 +38,57 @@
"value": "[\"PLAYING\", \"LISTENING\", \"WATCHING\", \"PLAYING\", \"COMPETING\"]"
},
"OWNERS": {
"description": "What is the owner's ID of the bot? Example: [\"319872685897416725\", \"390045370240991234\"]",
"description": "What is the owner's ID of the bot? | Example: [\"319872685897416725\", \"390045370240991234\"]",
"required": false,
"value": "[\"\"]"
},
"DEV_GUILD": {
"description": "What is your server's ID? Example: [\"332877090003091456\"]",
"description": "What is your server's ID? | Example: [\"332877090003091456\"]",
"required": false,
"value": "[\"\"]"
},
"NODE_ENV": {
"description": "In which mode do you want to activate your bot? Example: production | Available: production, development",
"description": "In which mode do you want to activate your bot? | Example: production | Available: production, development",
"required": false,
"value": "production"
},
"ENABLE_SLASH_COMMAND": {
"description": "Do you want to enable slash command support? Example: yes",
"description": "Do you want to enable slash command support? | Example: yes",
"required": false,
"value": "yes"
},
"MUSIC_SELECTION_TYPE": {
"description": "Which music selection type do you want to use? Example: selectmenu | Available: message (just like in the previous version) or selectmenu (uses discord selection menu)",
"description": "Which music selection type do you want to use? | Example: selectmenu | Available: message (just like in the previous version) or selectmenu (uses discord selection menu)",
"required": false,
"value": "message"
},
"ENABLE_24_7_COMMAND": {
"description": "Do you want to enable the 24/7 command? Example: no",
"description": "Do you want to enable the 24/7 command? | Example: no",
"required": false,
"value": "no"
},
"STAY_IN_VC_AFTER_FINISHED": {
"description": "Do you want to make your bot not leave the voice channel after playing a song? Example: no",
"description": "Do you want to make your bot not leave the voice channel after playing a song? | Example: no",
"required": false,
"value": "no"
},
"DJ_ROLE_NAME": {
"description": "What is your server's DJ role name? Example: DJ",
"description": "What is your server's DJ role name? | Example: DJ",
"required": false,
"value": "DJ"
},
"MUTE_ROLE_NAME": {
"description": "What is your server's Muted role name? Example: Muted",
"description": "What is your server's Muted role name? | Example: Muted",
"required": false,
"value": "Muted"
},
"YES_EMOJI": {
"description": "What should be your bot's emoji for every success sentence? Example: ✅",
"description": "What should be your bot's emoji for every success sentence? | Example: ✅",
"required": false,
"value": ""
},
"NO_EMOJI": {
"description": "What should be your bot's emoji for every failed sentence? Example: ❌",
"description": "What should be your bot's emoji for every failed sentence? | Example: ❌",
"required": false,
"value": ""
}
Expand Down
4 changes: 4 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"commands": {
"developers": {
"categoryName": "DEVELOPER",
"eval": {
"description": "Evaluate to the bot",
"usage": "{prefix}eval <some code>",
Expand All @@ -10,6 +11,7 @@
}
},
"general": {
"categoryName": "GENERAL",
"about": {
"description": "Show the bot's information",
"osUptimeString": "OS Uptime",
Expand Down Expand Up @@ -49,6 +51,7 @@
}
},
"moderation": {
"categoryName": "MODERATION",
"common": {
"noUserSpecified": "Please specify someone.",
"noReasonString": "[Not specified]",
Expand Down Expand Up @@ -139,6 +142,7 @@
}
},
"music": {
"categoryName": "MUSIC",
"lyrics": {
"description": "Show the lyrics from the song",
"slashDescription": "Song to search",
Expand Down
4 changes: 4 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"commands": {
"developers": {
"categoryName": "REVELADOR",
"eval": {
"description": "Evaluar al bot",
"usage": "{prefix}eval <código>",
Expand All @@ -10,6 +11,7 @@
}
},
"general": {
"categoryName": "GENERAL",
"about": {
"description": "Muestra la información del bot",
"osUptimeString": "Tiempo de actividad del SO",
Expand Down Expand Up @@ -50,6 +52,7 @@
},
"moderation": {
"common": {
"categoryName": "MODERACIÓN",
"noUserSpecified": "Por favor especifica un usuario.",
"noReasonString": "[No especificado]",
"reasonString": "**Razón**"
Expand Down Expand Up @@ -139,6 +142,7 @@
},
"music": {
"lyrics": {
"categoryName": "MÚSICA",
"description": "Muestra la letra de una canción",
"slashDescription": "Canción a buscar",
"usage": "{prefix}lyrics [canción]",
Expand Down
4 changes: 4 additions & 0 deletions lang/id.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"commands": {
"developers": {
"categoryName": "PENGEMBANG",
"eval": {
"description": "Evaluasi kode",
"usage": "{prefix}eval <kode>",
Expand All @@ -10,6 +11,7 @@
}
},
"general": {
"categoryName": "UMUM",
"about": {
"description": "Menampilkan informasi bot",
"osUptimeString": "Uptime OS",
Expand Down Expand Up @@ -49,6 +51,7 @@
}
},
"moderation": {
"categoryName": "MODERASI",
"common": {
"noUserSpecified": "Mohon mention seseorang.",
"noReasonString": "[Tidak disebutkan]",
Expand Down Expand Up @@ -138,6 +141,7 @@
}
},
"music": {
"categoryName": "MUSIK",
"lyrics": {
"description": "Menampilkan lirik lagu",
"slashDescription": "Judul lagu untuk dicari",
Expand Down
Loading

0 comments on commit 4cd3032

Please sign in to comment.