author icon + translate

This commit is contained in:
Neko Life 2021-06-30 17:48:19 +09:00
parent cd3985547c
commit 38af1b3e7c
10 changed files with 10 additions and 12 deletions

View file

@ -17,7 +17,7 @@ module.exports = class baka extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is getting dere-dere~ =>`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is getting dere-dere~ =>`;
const image = await fetchNeko("baka"); const image = await fetchNeko("baka");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class cry extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is crying :<`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is crying :<`;
const image = await fetchNeko("cry"); const image = await fetchNeko("cry");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class dance extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is dancin :>`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is dancin :>`;
const image = await fetchNeko("dance"); const image = await fetchNeko("dance");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class laugh extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is laughin XD`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is laughin XD`;
const image = await fetchNeko("laugh"); const image = await fetchNeko("laugh");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class neko extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} ~Nyann~ (UwU) <3`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} ~Nyann~ (UwU) <3`;
const image = await fetchNeko("nekos"); const image = await fetchNeko("nekos");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class smile extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is smilin :D`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is smilin :D`;
const image = await fetchNeko("smile"); const image = await fetchNeko("smile");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class smug extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} got a smug face >:]`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} got a smug face >:]`;
const image = await fetchNeko("smug"); const image = await fetchNeko("smug");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -17,7 +17,7 @@ module.exports = class wave extends commando.Command {
msg.channel.startTyping(); msg.channel.startTyping();
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is waving :)`; const title = `${msg.guild ? msg.member.displayName : msg.author.username} is waving :)`;
const image = await fetchNeko("wave"); const image = await fetchNeko("wave");
const emb = defaultImageEmbed(msg, image, title); const emb = defaultImageEmbed(msg, image); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
return trySend(this.client, msg, emb); return trySend(this.client, msg, emb);
} }
}; };

View file

@ -31,9 +31,7 @@ module.exports = class profile extends commando.Command {
.setThumbnail(TM.displayAvatarURL({ format: "png", size: 4096, dynamic: true })) .setThumbnail(TM.displayAvatarURL({ format: "png", size: 4096, dynamic: true }))
.addField("Registered", TM.createdAt.toUTCString().slice(0, -4), true) .addField("Registered", TM.createdAt.toUTCString().slice(0, -4), true)
.addField("ID", TM.id, true); .addField("ID", TM.id, true);
if (TM.description) { if (TM.description) emb.setDescription(TM.description);
emb.setDescription(TM.description);
}
if (MEM) { if (MEM) {
const RI = MEM.roles.cache.sort((a, b) => b.position - a.position).map(r => r.id).slice(0, -1), const RI = MEM.roles.cache.sort((a, b) => b.position - a.position).map(r => r.id).slice(0, -1),
RFS = splitOnLength(RI, 1010, ">, <@&"); RFS = splitOnLength(RI, 1010, ">, <@&");

View file

@ -33,7 +33,7 @@ module.exports = class translate extends commando.Command {
memberName: "translate", memberName: "translate",
group: "utility", group: "utility",
description: "Translate some alien languages.", description: "Translate some alien languages.",
details: "Supported languages:\n" + details: "**Supported languages:**\n" +
`\`en\` English\n` + `\`en\` English\n` +
`\`ar\` Arabic\n` + `\`ar\` Arabic\n` +
`\`zh\` Chinese\n` + `\`zh\` Chinese\n` +