From 37d6810b4e69231a089a3ef3147e480adf58040b Mon Sep 17 00:00:00 2001 From: cmd1152 Date: Sun, 17 Mar 2024 12:05:32 +0800 Subject: [PATCH 1/2] fix omg_afkbot --- plugins/omg_afkbot/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/omg_afkbot/index.js b/plugins/omg_afkbot/index.js index b38ada4..7369e6b 100644 --- a/plugins/omg_afkbot/index.js +++ b/plugins/omg_afkbot/index.js @@ -21,16 +21,17 @@ return result; } function generateExpandableList(obj) { + let html = ''; for (const key in obj) { html += `
${key}`; - html += '
\/ nick
    '; + html += '
    nick
      '; obj[key].nick.forEach(nick => { - html += `
    • ${nick}
    • `; + html += `
    • ${nick}
    • `; }); html += '
    '; - html += '
    \/ trip
      '; + html += '
      trip
        '; obj[key].trip.forEach(trip => { - html += `
      • ${trip}
      • `; + html += `
      • ${trip}
      • `; }); html += '
      '; html += '
    '; From 3da706d7fcc59609b96f5e32a84b161b76ee49e9 Mon Sep 17 00:00:00 2001 From: cmd1152 Date: Sun, 17 Mar 2024 12:07:40 +0800 Subject: [PATCH 2/2] fix omg_afkbot --- plugins/omg_afkbot/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/omg_afkbot/index.js b/plugins/omg_afkbot/index.js index 7369e6b..d99ac29 100644 --- a/plugins/omg_afkbot/index.js +++ b/plugins/omg_afkbot/index.js @@ -26,7 +26,7 @@ function generateExpandableList(obj) { html += `
    ${key}`; html += '
    nick
      '; obj[key].nick.forEach(nick => { - html += `
    • ${nick}
    • `; + html += `
    • ${nick}
    • `; }); html += '
    '; html += '
    trip
      ';