Skip to content

Commit

Permalink
Merge pull request #728 from hwangsihu/beta-v5
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
LucasB25 authored Sep 20, 2024
2 parents 9dfa60b + f14b08d commit 34d9baa
Show file tree
Hide file tree
Showing 34 changed files with 366 additions and 485 deletions.
36 changes: 18 additions & 18 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
TOKEN= "" # Your bot token.
CLIENT_ID= "" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.).
DEFAULT_LANGUAGE= "EnglishUS" # Default language for bot
PREFIX= "!" # Your prefix.
OWNER_IDS= ["",""] # Your discord id (You can add multiple ids.).
GUILD_ID= "" # Your server ID (If you want to use the bot for a single server).
TOPGG= "" # Your Top.gg API key. Obtain this from https://top.gg
KEEP_ALIVE= "false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID= "" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel.
LOG_COMMANDS_ID= "" # The channel ID where command usage logs will be sent.
BOT_STATUS= "online" # Your bot status (online, dnd, idle, invisible or offline).
BOT_ACTIVITY_TYPE= 0 # Activity type is a number from 0 to 5. See more here: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
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
GENIUS_API= "" # Sign up and get your own api at (https://genius.com/) to fetch your lyrics (CLIENT TOKEN)
NODES=[{"id":"main","host":"localhost","port":2333,"authorization":"youshallnotpass"}]
TOKEN="" # Your bot token.
CLIENT_ID="" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.).
DEFAULT_LANGUAGE="EnglishUS" # Default language for bot
PREFIX="!" # Your prefix.
OWNER_IDS=["",""] # Your discord id (You can add multiple ids.).
GUILD_ID="" # Your server ID (If you want to use the bot for a single server).
TOPGG="" # Your Top.gg API key. Obtain this from https://top.gg
KEEP_ALIVE="false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID="" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel.
LOG_COMMANDS_ID="" # The channel ID where command usage logs will be sent.
BOT_STATUS="online" # Your bot status (online, dnd, idle, invisible or offline).
BOT_ACTIVITY_TYPE=0 # Activity type is a number from 0 to 5. See more here: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
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
GENIUS_API="" # Sign up and get your own api at (https://genius.com/) to fetch your lyrics (CLIENT TOKEN)
NODES=[{"id":"Local Node","host":"localhost","port":2333,"authorization":"youshallnotpass"}]
14 changes: 7 additions & 7 deletions Lavalink/example.application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ plugins:
spotify:
clientId: "your client id"
clientSecret: "your client secret"
spDc: "your sp dc cookie" # the sp dc cookie used for accessing the spotify lyrics api
# spDc: "your sp dc cookie" # the sp dc cookie used for accessing the spotify lyrics api
countryCode: "US" # the country code you want to use for filtering the artists top tracks. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
playlistLoadLimit: 6 # The number of pages at 100 tracks each
albumLoadLimit: 6 # The number of pages at 50 tracks each
Expand Down Expand Up @@ -101,15 +101,15 @@ lavalink:
- dependency: "com.github.appujet:jiosaavn-plugin:0.1.7"
repository: "https://jitpack.io"
- dependency: "com.dunctebot:skybot-lavalink-plugin:1.7.0"
snapshot: false # set to true if you want to use snapshot builds.
snapshot: false # set to true if you want to use snapshot builds
- dependency: "com.github.topi314.lavasearch:lavasearch-plugin:1.0.0"
snapshot: false # set to true if you want to use snapshot builds.
snapshot: false # set to true if you want to use snapshot builds
- dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.2.0"
snapshot: false # set to true if you want to use snapshot builds.
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.7.2"
snapshot: false # set to true if you want to use snapshot builds.
snapshot: false # set to true if you want to use snapshot builds
- dependency: "dev.lavalink.youtube:youtube-plugin:1.8.0"
snapshot: false # set to true if you want to use snapshot builds
pluginsDir: './plugins'
server:
password: "youshallnotpass"
Expand Down
68 changes: 32 additions & 36 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"all": true,
"suspicious": {
"noConfusingVoidType": "off",
"noConsole": "off",
"noConsoleLog": "off",
"noEmptyBlockStatements": "off",
"noEvolvingTypes": "off",
"noExplicitAny": "off",
"noGlobalIsFinite": "off",
"noGlobalIsNan": "off",
"useAwait": "off"
"complexity": {
"noBannedTypes": "off",
"noExcessiveCognitiveComplexity": "off",
"noForEach": "off",
"noStaticOnlyClass": "off"
},
"correctness": {
"noNodejsModules": "off",
"noUnusedFunctionParameters": "off",
"noUnusedVariables": "off",
"noVoidTypeReturn": "off",
"useImportExtensions": "off"
},
"performance": {
"noBarrelFile": "off",
"useTopLevelRegex": "off"
},
"security": {
"noGlobalEval": "off"
},
"style": {
"noDefaultExport": "off",
Expand All @@ -27,34 +36,21 @@
"useBlockStatements": "off",
"useDefaultSwitchClause": "off",
"useFilenamingConvention": "off",
"useImportType": "warn",
"useNamingConvention": "off",
"useNumberNamespace": "off",
"useSingleCaseStatement": "off",
"useImportType": "warn"
"useSingleCaseStatement": "off"
},
"complexity": {
"noBannedTypes": "off",
"noForEach": "off",
"useOptionalChain": "off",
"noStaticOnlyClass": "off",
"noExcessiveCognitiveComplexity": {
"level": "warn",
"options": {
"maxAllowedComplexity": 255
}
}
},
"security": {
"noGlobalEval": "off"
},
"correctness": {
"noNodejsModules": "off",
"noVoidTypeReturn": "off",
"useImportExtensions": "off"
},
"performance": {
"noBarrelFile": "off",
"useTopLevelRegex": "off"
"suspicious": {
"noConfusingVoidType": "off",
"noConsole": "off",
"noConsoleLog": "off",
"noEmptyBlockStatements": "off",
"noEvolvingTypes": "off",
"noExplicitAny": "off",
"noGlobalIsFinite": "off",
"noGlobalIsNan": "off",
"useAwait": "off"
}
}
},
Expand Down
1 change: 0 additions & 1 deletion locales/ChineseCN.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "没有上一首曲目。",
"playing_previous": "正在播放上一首曲目。",
"previous_footer": "由 {displayName} 播放上一首曲目",
"rewind_limit": "您不能将音乐倒回到超过歌曲长度的位置。",
"rewinded": "已倒回音乐。",
"rewind_footer": "由 {displayName} 倒回",
"forward_limit": "您不能将音乐快进到超过歌曲长度的位置。",
Expand Down
1 change: 0 additions & 1 deletion locales/ChineseTW.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "沒有上一首曲目。",
"playing_previous": "正在播放上一首曲目。",
"previous_footer": "由 {displayName} 播放上一首曲目",
"rewind_limit": "您不能將音樂倒帶到超過歌曲長度的位置。",
"rewinded": "已倒帶音樂。",
"rewind_footer": "由 {displayName} 資訊",
"forward_limit": "您不能將音樂快轉到超過歌曲長度的位置。",
Expand Down
7 changes: 3 additions & 4 deletions locales/EnglishUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"options": {
"command": "The command you want to get info on"
},
"content": "Hey there! I'm {bot}, a music bot made with [Lavamusic](https://github.com/appujet/lavamusic) and Discord. You can use `{prefix}help <command>` to get more info on a command.",
"content": "Hey there! I'm {bot}, a music bot made with [Lavamusic](https://github.com/appujet/lavamusic) and Discord.js. You can use `{prefix}help <command>` to get more info on a command.",
"title": "Help Menu",
"not_found": "This `{cmdName}` command does not exist.",
"help_cmd": "**Description:** {description}\n**Usage:** {usage}\n**Examples:** {examples}\n**Aliases:** {aliases}\n**Category:** {category}\n**Cooldown:** {cooldown} seconds\n**Permissions:** {premUser}\n**Bot Permissions:** {premBot}\n**Developer Only:** {dev}\n**Slash Command:** {slash}\n**Args:** {args}\n**Player:** {player}\n**DJ:** {dj}\n**DJ Permissions:** {djPerm}\n**Voice:** {voice}",
"footer": "Use {prefix}help <command> for more info on a command"
},
"botinfo": {
"description": "Information about the bot",
"content": "Bot Information:\n- **Operating System**: {osInfo}\n- **Uptime**: {osUptime}\n- **Hostname**: {osHostname}\n- **CPU Architecture**: {cpuInfo}\n- **CPU Usage**: {cpuUsed}%\n- **Memory Usage**: {memUsed}MB / {memTotal}GB\n- **Node Version**: {nodeVersion}\n- **Discord Version**: {discordJsVersion}\n- **Connected to** {guilds} guilds, {channels} channels, and {users} users\n- **Total Commands**: {commands}"
"content": "Bot Information:\n- **Operating System**: {osInfo}\n- **Uptime**: {osUptime}\n- **Hostname**: {osHostname}\n- **CPU Architecture**: {cpuInfo}\n- **CPU Usage**: {cpuUsed}%\n- **Memory Usage**: {memUsed}MB / {memTotal}GB\n- **Node Version**: {nodeVersion}\n- **Discord.js Version**: {discordJsVersion}\n- **Connected to** {guilds} guilds, {channels} channels, and {users} users\n- **Total Commands**: {commands}"
},
"about": {
"description": "Shows information about the bot",
Expand Down Expand Up @@ -110,7 +110,7 @@
"errors": {
"channel_exists": "The song request channel already exists.",
"channel_not_exists": "The song request channel doesn't exist.",
"channel_delete_fail": "The song request channel has been deleted. If the channel is not deleted normally, please delete it yourself."
"channel_delete_fail": "The setup channel has been deleted from the database. Please delete the channel yourself."
},
"messages": {
"channel_created": "The song request channel has been created in <#{channelId}>.",
Expand Down Expand Up @@ -631,7 +631,6 @@
"no_previous_track": "There is no previous track.",
"playing_previous": "Playing the previous track.",
"previous_footer": "Playing the previous track by {displayName}",
"rewind_limit": "You cannot rewind the music more than the length of the song.",
"rewinded": "Rewinded the music.",
"rewind_footer": "Rewinded by {displayName}",
"forward_limit": "You cannot forward the music more than the length of the song.",
Expand Down
1 change: 0 additions & 1 deletion locales/French.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "Il n'y a pas de piste précédente.",
"playing_previous": "Lecture de la piste précédente.",
"previous_footer": "Lecture de la piste précédente par {displayName}",
"rewind_limit": "Vous ne pouvez pas rembobiner la musique plus que la longueur de la chanson.",
"rewinded": "Rembobinage de la musique.",
"rewind_footer": "Rembobiné par {displayName}",
"forward_limit": "Vous ne pouvez pas avancer la musique plus que la longueur de la chanson.",
Expand Down
1 change: 0 additions & 1 deletion locales/German.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "Es gibt keinen vorherigen Track.",
"playing_previous": "Spiele den vorherigen Track ab.",
"previous_footer": "Spiele den vorherigen Track ab von {displayName}",
"rewind_limit": "Du kannst die Musik nicht mehr als die Länge des Songs zurückspulen.",
"rewinded": "Musik zurückgespult.",
"rewind_footer": "Zurückgespult von {displayName}",
"forward_limit": "Du kannst die Musik nicht mehr als die Länge des Songs vorspulen.",
Expand Down
1 change: 0 additions & 1 deletion locales/Hindi.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "Koi pichhla track nahin hai.",
"playing_previous": "Pichhla track play कर रहा हूँ.",
"previous_footer": "{displayName} dwara pichhla track play kiya जा रहा है",
"rewind_limit": "Aap music ko song ki lambai se zyada rewind nahin kar sakte.",
"rewinded": "Music ko rewind कर diya गया है.",
"rewind_footer": "{displayName} dwara rewind kiya गया",
"forward_limit": "Aap music ko song ki lambai se zyada forward nahin kar sakte.",
Expand Down
1 change: 0 additions & 1 deletion locales/Indonesian.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "Tidak ada lagu sebelumnya.",
"playing_previous": "Memutar lagu sebelumnya.",
"previous_footer": "Memutar lagu sebelumnya oleh {displayName}",
"rewind_limit": "Anda tidak dapat memutar mundur lagu lebih dari panjang lagu.",
"rewinded": "Memutar mundur lagu.",
"rewind_footer": "Diputar mundur oleh {displayName}",
"forward_limit": "Anda tidak dapat memajukan lagu lebih dari panjang lagu.",
Expand Down
1 change: 0 additions & 1 deletion locales/Japanese.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@
"no_previous_track": "前のトラックがありません。",
"playing_previous": "前のトラックを再生中です。",
"previous_footer": "{displayName} によって前のトラックを再生中です",
"rewind_limit": "曲の長さ以上に巻き戻すことはできません。",
"rewinded": "音楽を巻き戻しました。",
"rewind_footer": "{displayName} によって巻き戻されました",
"forward_limit": "曲の長さ以上に早送りすることはできません。",
Expand Down
Loading

0 comments on commit 34d9baa

Please sign in to comment.