Added track url in the track loaded message
This commit is contained in:
@@ -103,7 +103,7 @@ class Basic(commands.Cog):
|
||||
await ctx.send(player.get_msg('playlistLoad').format(tracks.name, index))
|
||||
else:
|
||||
position = await player.add_track(tracks[0])
|
||||
await ctx.send((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
await ctx.send((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
except voicelink.QueueFull as e:
|
||||
await ctx.send(e)
|
||||
finally:
|
||||
@@ -143,7 +143,7 @@ class Basic(commands.Cog):
|
||||
await interaction.response.send_message(player.get_msg('playlistLoad').format(tracks.name, index))
|
||||
else:
|
||||
position = await player.add_track(tracks[0])
|
||||
await interaction.response.send_message((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
await interaction.response.send_message((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
except voicelink.QueueFull as e:
|
||||
await interaction.response.send_message(e)
|
||||
|
||||
@@ -202,8 +202,8 @@ class Basic(commands.Cog):
|
||||
for value in view.values:
|
||||
track = tracks[int(value.split(". ")[0]) - 1]
|
||||
position = await player.add_track(track)
|
||||
msg += ((f"`{player.get_msg('live')}`" if track.is_stream else "") + (player.get_msg('trackLoad_pos').format(track.title, track.author, track.formatLength,
|
||||
position) if position >= 1 else player.get_msg('trackLoad').format(track.title, track.author, track.formatLength)))
|
||||
msg += ((f"`{player.get_msg('live')}`" if track.is_stream else "") + (player.get_msg('trackLoad_pos').format(track.title, track.uri, track.author, track.formatLength,
|
||||
position) if position >= 1 else player.get_msg('trackLoad').format(track.title, track.uri, track.author, track.formatLength)))
|
||||
await ctx.send(msg, allowed_mentions=False)
|
||||
|
||||
if not player.is_playing:
|
||||
@@ -231,7 +231,7 @@ class Basic(commands.Cog):
|
||||
await ctx.send(player.get_msg('playlistLoad').format(tracks.name, index))
|
||||
else:
|
||||
position = await player.add_track(tracks[0], at_font=True)
|
||||
await ctx.send((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
await ctx.send((f"`{player.get_msg('live')}`" if tracks[0].is_stream else "") + (player.get_msg('trackLoad_pos').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength, position) if position >= 1 and player.is_playing else player.get_msg('trackLoad').format(tracks[0].title, tracks[0].uri, tracks[0].author, tracks[0].formatLength)), allowed_mentions=False)
|
||||
|
||||
except voicelink.QueueFull as e:
|
||||
await ctx.send(e)
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "直播",
|
||||
"playlistLoad": " 🎶 已添加播放清單 **{0}**,共 `{1}` 首歌曲至隊列。",
|
||||
"trackLoad": "已添加 **{0}**,由 **{1}** (`{2}`) 開始播放。\n",
|
||||
"trackLoad_pos": "已將 **{0}**,由 **{1}** (`{2}`) 添加到隊列中位置 **{3}**\n",
|
||||
"trackLoad": "已添加 **[{0}](<{1}>)**,由 **{2}** (`{3}`) 開始播放。\n",
|
||||
"trackLoad_pos": "已將 **[{0}](<{1}>)**,由 **{2}** (`{3}`) 添加到隊列中位置 **{4}**\n",
|
||||
|
||||
"searchTitle": "搜索查詢: {0}",
|
||||
"searchDesc": "➥ 平台: {0} **{1}**\n➥ 結果: **{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "LIVE",
|
||||
"playlistLoad": " 🎶 Die Wiedergabeliste **{0}** mit `{1}` Songs wurde zur Warteschlange hinzugefügt.",
|
||||
"trackLoad": "**{0}** von **{1}** (`{2}`) wurde zum Abspielen hinzugefügt.\n",
|
||||
"trackLoad_pos": "**{0}** von **{1}** (`{2}`) wurde in der Warteschlange an Position **{3}** hinzugefügt.\n",
|
||||
"trackLoad": "**[{0}](<{1}>)** von **{2}** (`{3}`) wurde zum Abspielen hinzugefügt.\n",
|
||||
"trackLoad_pos": "**[{0}](<{1}>)** von **{2}** (`{3}`) wurde in der Warteschlange an Position **{4}** hinzugefügt.\n",
|
||||
|
||||
"searchTitle": "Suchabfrage: {0}",
|
||||
"searchDesc": "➥ Plattform: {0} **{1}**\n➥ Ergebnisse: **{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "LIVE",
|
||||
"playlistLoad": " 🎶 Added the playlist **{0}** with `{1}` songs to the queue.",
|
||||
"trackLoad": "Added **{0}** by **{1}** (`{2}`) to begin playing.\n",
|
||||
"trackLoad_pos": "Added **{0}** by **{1}** (`{2}`) to the queue at position **{3}**\n",
|
||||
"trackLoad": "Added **[{0}](<{1}>)** by **{2}** (`{3}`) to begin playing.\n",
|
||||
"trackLoad_pos": "Added **[{0}](<{1}>)** by **{3}** (`{3}`) to the queue at position **{4}**\n",
|
||||
|
||||
"searchTitle": "Search Query: {0}",
|
||||
"searchDesc": "➥ Platform: {0} **{1}**\n➥ Results: **{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "EN VIVO",
|
||||
"playlistLoad": " 🎶 Se agregó la lista de reproducción {0} con {1} canciones a la cola.",
|
||||
"trackLoad": "Se agregó {0} de {1} ({2}) para comenzar a reproducir.\n",
|
||||
"trackLoad_pos": "Se agregó {0} de {1} ({2}) a la cola en la posición {3}\n",
|
||||
"trackLoad": "Se agregó **[{0}](<{1}>)** de {2} ({3}) para comenzar a reproducir.\n",
|
||||
"trackLoad_pos": "Se agregó **[{0}](<{1}>)** de {2} ({3}) a la cola en la posición {4}\n",
|
||||
|
||||
"searchTitle": "Consulta de búsqueda: {0}",
|
||||
"searchDesc": "➥ Plataforma: {0} **{1}**\n➥ Resultados: **{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "ライブ",
|
||||
"playlistLoad": " 🎶 プレイリスト**{0}**をキューに`{1}`曲追加しました。",
|
||||
"trackLoad": "**{1}**の**{0}** (`{2}`)を再生を開始するために追加しました。\n",
|
||||
"trackLoad_pos": "**{1}**の**{0}** (`{2}`)をキューの位置**{3}**に追加しました。\n",
|
||||
"trackLoad": "**{2}**の**[{0}](<{1}>)** (`{3}`)を再生を開始するために追加しました。\n",
|
||||
"trackLoad_pos": "**{2}**の**[{0}](<{1}>)** (`{3}`)をキューの位置**{4}**に追加しました。\n",
|
||||
|
||||
"searchTitle": "検索クエリ:{0}",
|
||||
"searchDesc": "➥ プラットフォーム:{0} **{1}**\n➥ 結果:**{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "라이브",
|
||||
"playlistLoad": "재생목록 **{0}**을(를) 대기열에 `{1}`개의 곡과 함께 추가했습니다.",
|
||||
"trackLoad": "**{1}**의 **{0}** (`{2}`)를 재생목록에 추가하고 재생을 시작합니다.\n",
|
||||
"trackLoad_pos": "**{1}**의 **{0}** (`{2}`)를 대기열의 **{3}**번째로 추가합니다.\n",
|
||||
"trackLoad": "**{2}**의 **[{0}](<{1}>)** (`{3}`)를 재생목록에 추가하고 재생을 시작합니다.\n",
|
||||
"trackLoad_pos": "**{2}**의 **[{0}](<{1}>)** (`{3}`)를 대기열의 **{4}**번째로 추가합니다.\n",
|
||||
|
||||
"searchTitle": "검색 쿼리: {0}",
|
||||
"searchDesc": "➥ 플랫폼: {0} **{1}**\n➥ 결과: **{2}**\n\n{3}",
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
"live": "В ЭФИРЕ",
|
||||
"playlistLoad": "🎶 Добавлен плейлист **{0}** с `{1}` песнями в очередь.",
|
||||
"trackLoad": "Добавлен **{0}** от **{1}** (`{2}`) для начала проигрывания.\n",
|
||||
"trackLoad_pos": "Добавлен **{0}** от **{1}** (`{2}`) в очередь на позицию **{3}**\n",
|
||||
"trackLoad": "Добавлен **[{0}](<{1}>)** от **{2}** (`{3}`) для начала проигрывания.\n",
|
||||
"trackLoad_pos": "Добавлен **[{0}](<{1}>)** от **{2}** (`{3}`) в очередь на позицию **{4}**\n",
|
||||
"searchTitle": "Поиск: {0}",
|
||||
"searchDesc": "➥ Платформа: {0} **{1}**\n➥ Результаты: **{2}**\n\n{3}",
|
||||
"searchWait": "Выберите песню, которую хотите добавить в очередь.",
|
||||
|
||||
Reference in New Issue
Block a user