use ? prefix for tags

This commit is contained in:
Ryan Cao 2022-07-26 21:06:30 +08:00
parent 5b44978ec2
commit 35a64b4f25
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
2 changed files with 30 additions and 24 deletions

View file

@ -12,6 +12,7 @@ export const cmd: Command = {
for (const i in tags) {
const tag = tags[i];
let text = '';
if (tag.aliases && tag.aliases[0]) {
text += '**Aliases**: ' + tag.aliases.join(', ') + '\n';
}
@ -21,7 +22,8 @@ export const cmd: Command = {
} else if (tag.embed) {
text += '\n[embedded message]';
}
em.addField(tag.name, text);
em.addField('?' + tag.name, text);
}
await e.reply({ embeds: [em] });