You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnmessage.channel.send(`\`❌ [DATABASE_ERR]:\` The database responded with error: ${err.name}`);
22
+
returnmessage.channel.send(`\`❌ [DATABASE_ERR]:\` The database responded with error: \`${err.name}\``);
23
23
}elseif(!doc||doc.data.economy.wallet===null){
24
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, You don't have a **wallet** yet!\nTo create one, type \`${client.prefix}register\`.`);
24
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, You don't have a **wallet** yet!\nTo create one, type \`${client.prefix}register\`.`);
25
25
}elseif(doc.data.economy.bank===null){
26
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, You don't have a **bank** yet!\nTo create one, type \`${client.prefix}bank\`.`);
26
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, You don't have a **bank** yet!\nTo create one, type \`${client.prefix}bank\`.`);
27
+
}elseif(!fr){
28
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, please specify the user you want to give credits to!`);
27
29
}elseif(!friend){
28
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, I couldn't find ${fr} in this server!`);
29
-
}elseif(!amount){
30
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, **${amount}** is not a valid amount!`);
30
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, I couldn't find \`${fr}\` in this server!`);
31
+
}elseif(!amount||amount==='Nothing'){
32
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, **${amount}** is not a valid amount!`);
31
33
}elseif(amount<100||amount>20000){
32
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, only valid amount to transfer is between **100** and **20,000**!`);
34
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, only valid amount to transfer is between **100** and **20,000**!`);
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, Insuffecient credits! You only have **${text.commatize(doc.data.economy.bank)}** in your bank! (10% fee applies)`);
36
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, Insuffecient credits! You only have **${text.commatize(doc.data.economy.bank)}** in your bank! (10% fee applies)`);
returnmessage.channel.send(`\`❌ [DATABASE_ERR]:\` The database responded with error: ${err.name}`);
42
-
};
43
-
44
-
if(!friend||friend.economy.data.bank===null){
45
-
returnmessage.channel.send(`\\❌ **${message.member.displayName}**, **${friend.displayName}** doesn't have a bank yet! He is not yet eligible to receive credits!`);
42
+
if(!friend||friend.data.economy.bank===null){
43
+
returnmessage.channel.send(`\\❌ **${message.author.tag}**, **${friendName}** doesn't have a bank yet! He is not yet eligible to receive credits!`);
0 commit comments