Skip to content

Commit

Permalink
Merge pull request #39 from cmd1152/main
Browse files Browse the repository at this point in the history
Fix omg_afkbot
  • Loading branch information
xjzh123 authored Mar 17, 2024
2 parents d95c6c4 + 0fdd3c3 commit 79f486a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/omg_afkbot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
return result;
}
function generateExpandableList(obj) {
let html = '';
for (const key in obj) {
html += `<details open><summary>${key}</summary>`;
html += '<details><summary>\/ nick</summary><ul>';
html += '<details style="margin-left:15px"><summary>nick</summary><ul>';
obj[key].nick.forEach(nick => {
html += `<li>${nick}</li>`;
html += `<li style="margin-left:15px">${nick}</li>`;
});
html += '</ul></details>';
html += '<details><summary>\/ trip</summary><ul>';
html += '<details><summary style="margin-left:15px">trip</summary><ul>';
obj[key].trip.forEach(trip => {
html += `<li>${trip}</li>`;
html += `<li style="margin-left:30px">${trip}</li>`;
});
html += '</ul></details>';
html += '</ul></details>';
Expand Down

0 comments on commit 79f486a

Please sign in to comment.