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

Commit

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

* feat(commands): add PurgeCommand

* fix(VolumeCommand): volume should be multiplied

* fix(AboutCommand): load value everytime command is used

* feat(MuteCommand): muting server owner shouldn't be allowed

* feat(AboutCommand): remove 'v' in node version

* chore: change version

* chore(lang/en): add 'commands.moderation.purge'

* chore(lang/en): add 'commands.moderation.mute.cantMuteOwner'

* chore(deps): bump @discordjs/voice from 0.7.2 to 0.7.3 (#602) (#603)

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

* chore(deps): upgrade lockfile

* chore(CODEOWNERS): change KurokuTetsuya to ZenShibata

* chore(*): compare changes (#605)

* chore(deps): bump @discordjs/voice from 0.7.2 to 0.7.3 (#602)

* chore(env): update notes grammaring (#604)

* chore(env): update notes grammaring

* chore(heroku): update string content

* chore(env): update notes grammaring

* chore(env): apply suggestion

* chore(env): apply suggestion

Co-authored-by: mzrtamp <mozartrafi@zhycorp.net>

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

* chore(deps-dev): move @types/i18n and @types/node to devDependencies

* chore(deps): add ffmpeg-static

* chore(deps): remove ffmpeg-static

* chore(deps): add prism-media@1.3.2

* feat(ClientUtils): add 'getFFmpegVersion' function

* refactor(AboutCommand): use 'ClientUtils#getFFmpegVersion' instead

* chore(deps): upgrade lockfile

* chore(SearchCommand): remove the selection message after cancellation

* chore(lang/en): change the 'commands.music.stayInQueue.247Disabled' message

* chore(lang/id): synchronize with 'lang/en'

* chore(deps): bump @discordjs/voice from 0.7.3 to 0.7.5 (#607)

Bumps [@discordjs/voice](https://github.com/discordjs/voice) from 0.7.3 to 0.7.5.
- [Release notes](https://github.com/discordjs/voice/releases)
- [Changelog](https://github.com/discordjs/voice/blob/main/CHANGELOG.md)
- [Commits](discordjs/voice@v0.7.3...v0.7.5)

---
updated-dependencies:
- dependency-name: "@discordjs/voice"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

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

* chore(PingCommand): change 'Disconnected' to 'N/A'

* feat(commands): add InviteCommand

* chore(README): add youtube

* chore(*): update string content

* chore(isGlitch): don't remove devDependencies on non-glitch instance

* chore(config): tidy up file content

* chore(*): tidy up every ts file content

Contains string update, import line order sortings, etc.

* chore(lang/en): update some words

* chore(lang/id): menyinkronkan dengan 'lang/en'

* chore(lang/es): sincronizar con 'lang/en'

* chore(release): version 2.1.0

Co-authored-by: Mednoob <ahmadyaqdhan123@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 21Z <69188068+21Z@users.noreply.github.com>
  • Loading branch information
4 people committed Nov 15, 2021
1 parent 2173070 commit dbb1aed
Show file tree
Hide file tree
Showing 38 changed files with 307 additions and 518 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Global
* @mzrtamp @Mednoob @KurokuTetsuya
* @mzrtamp @Mednoob @ZenShibata
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ You can host this bot to make it stay online on Heroku.
### Glitch
You can use Glitch too for this project, featured with its code editor.

> Watch the tutorial video on YouTube!
>
> ▶️ **https://youtu.be/ILutlBl_Xyk**
1. Star and fork this project
2. Go to [glitch.com](https://glitch.com) and make an account
3. Click **New Project** then **Import from GitHub**, specify the pop-up field with `https://github.com/<your-name>/disc-11` (without `<>`)
Expand Down
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const { Server } = require("https");
try {
require("dotenv/config");
} catch (err) {
console.info("[INFO] It seems dotenv hasn't been installed. Trying to re-install all modules...");
console.info("[INFO] It seems dotenv hasn't installed, trying to re-install all modules...");
if (existsSync(resolve(process.cwd(), "node_modules"))) rmSync(resolve(process.cwd(), "node_modules"), { recursive: true });
execSync("npm i --only=prod dotenv");
console.info("[INFO] dotenv installed. Retrieving env data...");
console.info("[INFO] dotenv has been installed, trying to retrieve environment data...");
require("dotenv/config");
console.info("[INFO] Env data retrieved");
console.info("[INFO] Environment data has been retrieved.");
}

const isGlitch = (
Expand Down Expand Up @@ -72,14 +72,14 @@ if (isGitHub) {
if (isReplit && (Number(process.versions.node.split(".")[0]) < 16)) {
console.info("[INFO] This Replit doesn't use Node.js v16 or newer, trying to install Node.js v16...");
execSync(`npm i --save-dev node@16.6.1 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH`);
console.info("[INFO] Node.js v16 has installed, please re-run the bot.");
console.info("[INFO] Node.js v16 has been installed, please restart the bot.");
process.exit(0);
}

if (!isGlitch) {
console.info("[INFO] This bot is not running on Glitch. Installing ffmpeg-static...");
execSync("npm i --only=prod --no-save ffmpeg-static");
console.info("[INFO] ffmpeg-static installed");
console.info("[INFO] This bot is not running on Glitch, trying to install ffmpeg-static...");
execSync("npm i --no-save ffmpeg-static");
console.info("[INFO] ffmpeg-static has been installed.");
}

if (isGlitch || isReplit) {
Expand All @@ -103,7 +103,7 @@ if (isGlitch || isReplit) {
console.info("[INFO] Yt-dlp couldn't be found, trying to download...");
if (existsSync(resolve(ytdlBinaryDir, isUnix ? "youtube-dl" : "youtube-dl.exe"))) rmSync(resolve(ytdlBinaryDir, isUnix ? "youtube-dl" : "youtube-dl.exe"));
await require("youtube-dl-exec/scripts/postinstall");
console.info("[INFO] Yt-dlp has downloaded.");
console.info("[INFO] Yt-dlp has been downloaded.");
}

console.info("[INFO] Starting the bot...");
Expand Down
24 changes: 20 additions & 4 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"usageString": "Usage",
"commandUsageFooter": "<> = required | [] = optional {devOnly}"
},
"invite": {
"description": "Get the invite link for the bot",
"inviteTitle": "{bot} - Invite Link",
"clickURL": "**[Click here]({url})** to invite this bot to your server."
},
"ping": {
"description": "Shows the current ping of the bot",
"footerString": "Latency of: {user}"
Expand Down Expand Up @@ -82,17 +87,28 @@
"usage": "{prefix}mute <@mention | id> [reason]",
"userNoPermission": "Sorry, but you don't have **`MANAGE ROLES`** permission to use this command.",
"botNoPermission": "Sorry, but I don't have **`MANAGE ROLES`** permission.",
"cantMuteOwner": "You can't mute the server owner!",
"unableToCreateMuteRole": "Unable to create mute role",
"alreadyMuted": "That member is already **`MUTED`**",
"userMuted": "You have been **`MUTED`** on **{guildName}**",
"mutedByString": "Muted by: {author}",
"muteFail": "Unable to **`MUTE`** member, because: `{message}`",
"muteSuccess": "**{user}** has been **`MUTED`** on the server."
},
"purge": {
"description": "Delete messages",
"slashAmountDescription": "Amount of messages to delete",
"usage": "{prefix}purge <amount>",
"userNoPermission": "Sorry, but you don't have **`MANAGE MESSAGES`** permission to use this command.",
"botNoPermission": "Sorry, but I don't have **`MANAGE MESSAGES`** permission.",
"invalidAmount": "Please specify a valid number of messages to delete.",
"purgeFail": "Unable to **`PURGE`** messages, because: `{message}`",
"purgeSuccess": "**{amount}** messages have been **`PURGED`**"
},
"unban": {
"description": "Unban someone from the server",
"slashMemberDescription": "Who do you like to unban?",
"slashReasonDescription": "Unban reason",
"description": "Un-ban someone from the server",
"slashMemberDescription": "Who do you like to un-ban?",
"slashReasonDescription": "Un-ban reason",
"usage": "{prefix}unban <id> [reason]",
"alreadyUnban": "That user is not **`BANNED`**",
"unbanFail": "Unable to **`UN-BAN`** member, because: `{message}`",
Expand Down Expand Up @@ -206,7 +222,7 @@
"stayInQueue": {
"description": "Makes the bot stay in the voice channel when the queue has ended",
"slashDescription": "Turns mode for stay-in-voice feature",
"247Disabled": "Stay-in-voice feature is disabled.",
"247Disabled": "Stay-in-voice command is disabled.",
"actualState": "Stay-in-voice is **`{state}`**",
"newState": "Stay-in-voice is now set to **`{state}`**"
},
Expand Down
15 changes: 15 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"usageString": "Uso",
"commandUsageFooter": "<> = requerido | [] = opcional {devOnly}"
},
"invite": {
"description": "Obtén el enlace de invitación para el bot",
"inviteTitle": "{bot} - Enlace De Invitación",
"clickURL": "**[Haga clic]({url})** aquí para invitar a este bot a su servidor."
},
"ping": {
"description": "Muestra el ping actual del bot",
"footerString": "Latencia de: {user}"
Expand Down Expand Up @@ -89,6 +94,16 @@
"muteFail": "No se pudo **`SILENCIAR`** al miembro, porque: `{message}`",
"muteSuccess": "**{user}** ha sido **`SILENCIADO`** en el servidor."
},
"purge": {
"description": "Eliminar mensajes",
"slashAmountDescription": "Cantidad de mensajes para eliminar",
"usage": "{prefix}purge <monto>",
"userNoPermission": "Lo siento, pero no tienes el permiso **`MANAGE SERVER`** para usar este comando.",
"botNoPermission": "Sorry, but I don't have **`MANAGE MESSAGES`** permission.",
"invalidAmount": "Please specify a valid number of messages to delete.",
"purgeFail": "Unable to **`PURGE`** messages, because: `{message}`",
"purgeSuccess": "**{amount}** messages have been **`PURGED`**"
},
"unban": {
"description": "Desbanea a alguien del servidor",
"slashMemberDescription": "A quién quisieras desbanear?",
Expand Down
27 changes: 22 additions & 5 deletions lang/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"usageString": "Penggunaan",
"commandUsageFooter": "<> = dibutuhkan | [] = opsional {devOnly}"
},
"invite": {
"description": "Dapatkan link invite untuk bot",
"inviteTitle": "{bot} - Link invite",
"clickURL": "**[Klik disini]({url})** untung meng-invite bot ini ke server anda."
},
"ping": {
"description": "Menunjukkan ping bot",
"footerString": "Latensi dari: {user}"
Expand Down Expand Up @@ -82,25 +87,37 @@
"usage": "{prefix}mute <@mention | id> [alasan]",
"userNoPermission": "Mohon maaf, tetapi anda tidak memiliki izin **`MANAGE ROLES`** untuk menggunakan perintah ini.",
"botNoPermission": "Mohon maaf, tetapi saya tidak memiliki izin **`MANAGE ROLES`**.",
"cantMuteOwner": "Anda tidak bisa mute owner server!",
"unableToCreateMuteRole": "Tidak dapat membuat mute role",
"alreadyMuted": "Member tersebut sedang di **`MUTE`**",
"userMuted": "Anda telah di **`MUTE`** di **{guildName}**",
"mutedByString": "Di mute oleh: {author}",
"muteFail": "Tidak dapat **`MUTE`** member, dikarenakan: `{message}`",
"muteSuccess": "**{user}** telah di **`MUTE`** di server ini."
},
"purge": {
"description": "Hapus pesan",
"slashAmountDescription": "Jumlah pesan yang ingin dihapus",
"usage": "{prefix}purge <jumlah>",
"userNoPermission": "Mohon maaf, tetapi anda tidak memiliki izin **`MANAGE MESSAGES`** untuk menggunakan perintah ini.",
"botNoPermission": "Mohon maaf, tetapi saya tidak memiliki izin **`MANAGE MESSAGES`**.",
"invalidAmount": "Mohon berikan jumlah yang benar.",
"purgeFail": "Tidak dapat **`PURGE`** pesan, dikarenakan: `{message}`",
"purgeSuccess": "**{amount}** pesan telah di **`PURGED`**"
},
"unban": {
"description": "Unban seseorang dari server",
"slashMemberDescription": "Siapa yang ingin anda unban?",
"slashReasonDescription": "Alasan unban",
"slashMemberDescription": "Siapa yang ingin anda un-ban?",
"slashReasonDescription": "Alasan un-ban",
"usage": "{prefix}unban <id> [alasan]",
"alreadyUnban": "Orang itu sedang tidak di **`BAN`**",
"unbanFail": "Tidak dapat **`UN-BAN`** member, dikarenakan: `{message}`",
"ubanSuccess": "**{user}** telah di **`UN-BAN`** dari server ini."
},
"unmute": {
"description": "Unmute seseorang di server",
"slashMemberDescription": "Siapa yang ingin anda unmute?",
"slashReasonDescription": "Alasan unmute",
"slashMemberDescription": "Siapa yang ingin anda un-mute?",
"slashReasonDescription": "Alasan un-mute",
"usage": "{prefix}unmute <@mention | id> [alasan]",
"noMuted": "Member tersebut sedang tidak di **`MUTE`**",
"userUnmuted": "Anda telah di **`UN-MUTE`** di **{guildName}**",
Expand Down Expand Up @@ -203,7 +220,7 @@
"stayInQueue": {
"description": "Membuat bot menetap di voice channel saat antrian lagu sudah berakhir",
"slashDescription": "Mengganti mode fitur Stay-in-voice",
"247Disabled": "Fitur Stay-in-voice dimatikan.",
"247Disabled": "Perintah Stay-in-voice dimatikan.",
"actualState": "Stay-in-voice: **{state}**",
"newState": "Stay-in-voice telah diatur ke **{state}**"
},
Expand Down
Loading

0 comments on commit dbb1aed

Please sign in to comment.