feat: user name

This commit is contained in:
Ale 2023-09-05 19:40:46 +02:00
parent 14f8ad4580
commit 943946b7b2
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D
2 changed files with 7 additions and 7 deletions

View file

@ -16,13 +16,13 @@ client.on("messageCreate", async (message: Message) => {
if (message.author?.bot) {} if (message.author?.bot) {}
else { else {
if (message?.content.startsWith(config.prefix)) { if (message?.content.startsWith(config.prefix)) {
commandHandler(message, config.prefix); commandHandler(message, config.prefix);
}
else {
nonCommandHandler(message);
}
} }
else {
nonCommandHandler(message);
}
}
}); });
client.loginBot(config.botKey); client.loginBot(config.botKey);

View file

@ -29,7 +29,7 @@ export async function nonCommandHandler(message : Message){
await message.channel.sendMessage({ await message.channel.sendMessage({
content: actualContent, content: actualContent,
masquerade: { masquerade: {
name: alter.name, name: alter.name + " ( " + message.author.id + " )",
avatar: alter.profile_pic_url, avatar: alter.profile_pic_url,
color: alter.color color: alter.color
}, },