mirror of
https://github.com/ION606/selmerBot.git
synced 2026-06-05 23:06:14 +00:00
Finished the welcome message command
This commit is contained in:
@@ -54,10 +54,14 @@ async function welcome(member, welcomechannel, welcomemessage = null, welcomeban
|
||||
|
||||
//message.author.username == interaction.member.displayName
|
||||
//message.guild.name == interaction.member.guild.name
|
||||
let txt = 'Welcome to';
|
||||
if (welcomemessage != null) { txt = welcomemessage}
|
||||
let text = `Welcome to ${member.guild.name} ${member.user.username}#${member.user.discriminator}!`;
|
||||
if(welcomemessage != null) {
|
||||
text = welcomemessage;
|
||||
text = text.replace('{sn}', member.guild.name);
|
||||
text = text.replace('{un}', member.user.username);
|
||||
text = text.replace('{ut}', member.user.discriminator);
|
||||
}
|
||||
|
||||
const text = `${txt} ${member.guild.name} ${member.user.username}#${member.user.discriminator}!`;
|
||||
context.font = applyText(canvas, text);
|
||||
context.fillStyle = '#ffffff';
|
||||
context.fillText(text, (canvas.width/2) - (text.length * 7.5), canvas.height - 15);
|
||||
|
||||
Reference in New Issue
Block a user