Merge pull request #8 from ProfessorDey/patch-2

Updated doHelp() & Added Self Tip Detection
This commit is contained in:
Niko 2018-01-04 01:28:55 +01:00 committed by GitHub
commit c7b8385455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,11 +113,9 @@ function doTip(message, tipper, words) {
function doHelp(message) {
if (!inPrivateOrBotSandbox(message)) {
message.reply('Please use <#369896313082478594> or DMs to talk to bots.');
return;
message.reply('Sent you help via DM! Please use <#369896313082478594> or DMs to talk to bots.');
}
message.reply('Sent you help via DM!');
message.author.send('**!tip**\n !tip balance: get your balance\n !tip deposit: get adress for your deposits\n !tip withdraw ADDRESS AMOUNT: withdraw AMOUNT credits to ADDRESS\n !tip <user> <amount>: send <amount> credits to <user>');
message.author.send('**!tip**\n balance: get your balance\n deposit: get address for your deposits\n withdraw ADDRESS AMOUNT: withdraw AMOUNT credits to ADDRESS\n [private] <user> <amount>: mention a user with @ and then the amount to tip them, or put private before the user to tip them privately.\n Key: [] : Optionally include contained keyword, <> : Replace with appropriate value.');
}