Skip to content

Commit

Permalink
Merge pull request #656 from hwangsihu/main
Browse files Browse the repository at this point in the history
Update packages and language fix
  • Loading branch information
LucasB25 authored Aug 2, 2024
2 parents b627583 + ce3ac90 commit f69f98c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Lavalink/example.application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ lavalink:
snapshot: false # set to true if you want to use snapshot builds.
- dependency: "com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.1"
snapshot: false # set to true if you want to use snapshot builds.
- dependency: "dev.lavalink.youtube:youtube-plugin:1.5.0"
- dependency: "dev.lavalink.youtube:youtube-plugin:1.5.1"
snapshot: false # set to true if you want to use snapshot builds.
pluginsDir: './plugins'
server:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/i18n": "^0.13.12",
"@types/node": "^22.0.0",
"@types/node": "^22.0.2",
"@types/signale": "^1.4.7",
"prisma": "^5.17.0",
"typescript": "^5.5.4"
Expand All @@ -52,7 +52,7 @@
"signale": "^1.4.0",
"topgg-autoposter": "^2.0.2",
"tslib": "^2.6.3",
"undici": "^6.19.4"
"undici": "^6.19.5"
},
"signale": {
"displayScope": true,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/music/Play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class Play extends Command {
const track = player.buildTrack(res.data, ctx.author);
if (player.queue.length > client.config.maxQueueSize)
return await ctx.editMessage({
content: "",
content: "",
embeds: [
embed
.setColor(this.client.color.red)
Expand Down
4 changes: 1 addition & 3 deletions src/events/client/Ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export default class Ready extends Event {
if (config.topGG) {
const autoPoster = AutoPoster(config.topGG, this.client);
setInterval(() => {
autoPoster.on("posted", (stats) => {
console.log(`[INFO] Posted stats to Top.gg | ${stats.serverCount} servers`);
});
autoPoster.on("posted", (_stats) => {});
}, 86400000); // 24 hours in milliseconds
} else {
this.client.logger.warn("Top.gg token not found. Skipping auto poster.");
Expand Down
25 changes: 13 additions & 12 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,55 @@ export enum SearchEngine {
}

export enum Language {
Indonesian = "Indonesian",
EnglishUS = "EnglishUS",
Hindi = "Hindi",
Polish = "Polish",
Korean = "Korean",
French = "French",
German = "German",
SpanishES = "SpanishES",
EnglishGB = "EnglishGB",
Bulgarian = "Bulgarian",
ChineseCN = "ChineseCN",
ChineseTW = "ChineseTW",
Croatian = "Croatian",
Czech = "Czech",
Danish = "Danish",
Dutch = "Dutch",
EnglishGB = "EnglishGB",
EnglishUS = "EnglishUS",
Finnish = "Finnish",
French = "French",
German = "German",
Greek = "Greek",
Hindi = "Hindi",
Hungarian = "Hungarian",
Indonesian = "Indonesian",
Italian = "Italian",
Japanese = "Japanese",
Korean = "Korean",
Lithuanian = "Lithuanian",
Norwegian = "Norwegian",
Polish = "Polish",
PortugueseBR = "PortugueseBR",
Romanian = "Romanian",
Russian = "Russian",
SpanishES = "SpanishES",
Swedish = "Swedish",
Thai = "Thai",
Turkish = "Turkish",
Ukrainian = "Ukrainian",
Vietnamese = "Vietnamese",
}
export const LocaleFlags = {
[Language.Indonesian]: "🇮🇩",
[Language.EnglishUS]: "🇺🇸",
[Language.EnglishGB]: "🇬🇧",
[Language.Bulgarian]: "🇧🇬",
[Language.ChineseCN]: "🇨🇳",
[Language.ChineseTW]: "🇹🇼",
[Language.Croatian]: "🇭🇷",
[Language.Czech]: "🇨🇿",
[Language.Danish]: "🇩🇰",
[Language.Dutch]: "🇳🇱",
[Language.EnglishGB]: "🇬🇧",
[Language.EnglishUS]: "🇺🇸",
[Language.Finnish]: "🇫🇮",
[Language.French]: "🇫🇷",
[Language.German]: "🇩🇪",
[Language.Greek]: "🇬🇷",
[Language.Hindi]: "🇮🇳",
[Language.Hungarian]: "🇭🇺",
[Language.Indonesian]: "🇮🇩",
[Language.Italian]: "🇮🇹",
[Language.Japanese]: "🇯🇵",
[Language.Korean]: "🇰🇷",
Expand All @@ -75,6 +75,7 @@ export const LocaleFlags = {
[Language.Ukrainian]: "🇺🇦",
[Language.Vietnamese]: "🇻🇳",
};

/**
* Project: lavamusic
* Author: Appu
Expand Down

0 comments on commit f69f98c

Please sign in to comment.