diff --git a/.env.example b/.env.example index 79ae6b0c2..23e3a6021 100644 --- a/.env.example +++ b/.env.example @@ -13,7 +13,7 @@ BOT_ACTIVITY_TYPE= 0 # Activity type is a number from 0 to 5. See more here: htt BOT_ACTIVITY=" Lavamusic" # Your bot activity. DATABASE_URL= "" # Your database url (If you want to use sqlite, then you can leave it blank.). AUTO_NODE=" false" # true for auto node. It is given from lavainfo-api (https://lavainfo-api.deno.dev). -SEARCH_ENGINE= "YouTubeMusic" # Search engine to be used when playing the song. You can use: YouTube, YouTubeMusic, SoundCloud, Spotify, Apple, Deezer, Yandex and (JioSaavn +SEARCH_ENGINE= "YouTubeMusic" # Search engine to be used when playing the song. You can use: YouTube, YouTubeMusic, SoundCloud, Spotify, Apple, Deezer, Yandex and JioSaavn MAX_PLAYLIST_SIZE= "100" # Max playlist size. MAX_QUEUE_SIZE= "100" # Max queue size. diff --git a/locales/Bulgarian.json b/locales/Bulgarian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Bulgarian.json +++ b/locales/Bulgarian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Croatian.json b/locales/Croatian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Croatian.json +++ b/locales/Croatian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Czech.json b/locales/Czech.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Czech.json +++ b/locales/Czech.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Danish.json b/locales/Danish.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Danish.json +++ b/locales/Danish.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Dutch.json b/locales/Dutch.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Dutch.json +++ b/locales/Dutch.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/EnglishGB.json b/locales/EnglishGB.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/EnglishGB.json +++ b/locales/EnglishGB.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/EnglishUS.json b/locales/EnglishUS.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/EnglishUS.json +++ b/locales/EnglishUS.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Finnish.json b/locales/Finnish.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Finnish.json +++ b/locales/Finnish.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Greek.json b/locales/Greek.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Greek.json +++ b/locales/Greek.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Hungarian.json b/locales/Hungarian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Hungarian.json +++ b/locales/Hungarian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Italian.json b/locales/Italian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Italian.json +++ b/locales/Italian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Korean.json b/locales/Korean.json index 3eb0d1e66..097a4f30b 100644 --- a/locales/Korean.json +++ b/locales/Korean.json @@ -586,7 +586,9 @@ "error": "오류: `{error}`", "no_voice_channel_queue": "대기열에 노래를 추가하려면 음성 채널에 접속해주세요.", "no_permission_connect_speak": "<#{channel}>에서 연결/말하기 권한이 없어요.", - "different_voice_channel_queue": "노래를 대기열에 추가하려면 <#{channel}> 채널에 접속해주세요." + "different_voice_channel_queue": "노래를 대기열에 추가하려면 <#{channel}> 채널에 있어야 해요.", + "vote_button": "투표하기", + "vote_message": "잠깐! 이 명령어를 사용하려면 top.gg에서 투표해야 해요." }, "setupButton": { "no_voice_channel_button": "이 버튼을 사용하려면 음성 채널에 접속해주세요.", diff --git a/locales/Lithuanian.json b/locales/Lithuanian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Lithuanian.json +++ b/locales/Lithuanian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/PortugueseBR.json b/locales/PortugueseBR.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/PortugueseBR.json +++ b/locales/PortugueseBR.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Romanian.json b/locales/Romanian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Romanian.json +++ b/locales/Romanian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Swedish.json b/locales/Swedish.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Swedish.json +++ b/locales/Swedish.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Thai.json b/locales/Thai.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Thai.json +++ b/locales/Thai.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Turkish.json b/locales/Turkish.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Turkish.json +++ b/locales/Turkish.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/locales/Ukrainian.json b/locales/Ukrainian.json index 3d2e01d36..67c09d3b6 100644 --- a/locales/Ukrainian.json +++ b/locales/Ukrainian.json @@ -586,7 +586,9 @@ "error": "An error occurred: `{error}`", "no_voice_channel_queue": "You are not connected to a voice channel to queue songs.", "no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.", - "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs." + "different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.", + "vote_button": "Vote for me!", + "vote_message": "Wait! You need to vote on top.gg to use this command. Thanks." }, "setupButton": { "no_voice_channel_button": "You are not connected to a voice channel to use this button.", diff --git a/src/events/client/MessageCreate.ts b/src/events/client/MessageCreate.ts index a1e2a6701..79efd5f9b 100644 --- a/src/events/client/MessageCreate.ts +++ b/src/events/client/MessageCreate.ts @@ -106,13 +106,13 @@ export default class MessageCreate extends Event { if (!voted) { const voteBtn = new ActionRowBuilder().addComponents( new ButtonBuilder() - .setLabel("Vote for Me!") + .setLabel(T(locale, "event.message.vote_button")) .setURL(`https://top.gg/bot/${this.client.config.clientId}/vote`) .setStyle(ButtonStyle.Link), ); return await message.reply({ - content: "Wait! Before using this command, you must vote on top.gg. Thank you.", + content: T(locale, "event.message.vote_message"), components: [voteBtn], }); }