This commit is contained in:
NoLogicAlan committed 2026-10-06 00:32:48 +03:00
1 parent 2f51b7e1d7
commit 97fe282bb3
29 files changed
+101 -431

No files matched your search

+2 -2
View File
@@ -160,7 +160,7 @@ export async function runInfoActions(msg, data, lastfm, prefix, userId, targetUs
const tokenText = data.get("token")?.value;
if (tokenText) {
const dashMatch = tokenText.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
if (dashMatch) {
artistName = dashMatch[1].trim();
albumName = dashMatch[2].trim();
@@ -249,7 +249,7 @@ export async function runInfoActions(msg, data, lastfm, prefix, userId, targetUs
const tokenText = data.get("token")?.value;
if (tokenText) {
const dashMatch = tokenText.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
if (dashMatch) {
artistName = dashMatch[1].trim();
trackName = dashMatch[2].trim();