description:'balance: get your balance\n deposit: get adress for your deposits\n withdraw ADDRESS AMOUNT: withdraw AMOUNT credits to ADDRESS\n <user> <amount>: mention a user with @ and then the amount to tip them',
message.reply('You withdrew '+amount+' to '+address+' ('+txLink(txId)+')');
}
});
}
functiondoTip(message,tipper,words){
if(words.length<3||!words){
doHelp(message);
return;
}
letamount=getValidatedAmount(words[2]);
if(amount===null){
message.reply('I dont know how to tip that many credits');
return;
}
if(words[1].match(/^<@[^>]+>$/)){
letid=words[1].substr(2,words[1].length-3);
sendLbc(message,tipper,id,amount);
}
else
{
message.reply('Sorry, I could not find a user in your tip...');
}
}
asyncfunctiondoHelp(message){
if(!inPrivateOrBotSandbox(message)){
message.reply('Please use <#369896313082478594> or DMs to talk to bots.');
return;
}
message.author.send('**!tip**\n balance: get your balance\n deposit: get adress for your deposits\n withdraw ADDRESS AMOUNT: withdraw AMOUNT credits to ADDRESS\n <user> <amount>: send <amount> credits to <user>');