add message to send DM to tipbot #2

Closed
MSFTserver wants to merge 2 commits from patch-1 into master
Showing only changes of commit 02d8baf282 - Show all commits

View file

@ -48,7 +48,7 @@ function doBalance(message, tipper) {
function doDeposit(message, tipper) { function doDeposit(message, tipper) {
if(!inPrivateOrBotSandbox(message)){ if(!inPrivateOrBotSandbox(message)){
message.reply('Please use <#369896313082478594> or DMs to talk to bots.'); message.reply('Please use <#369896313082478594> or DM <@372832162572926987> to talk to tipbot.');
return; return;
} }
getAddress(tipper, function(err, address) { getAddress(tipper, function(err, address) {
@ -64,7 +64,7 @@ function doDeposit(message, tipper) {
function doWithdraw(message, tipper, words) { function doWithdraw(message, tipper, words) {
if(!inPrivateOrBotSandbox(message)){ if(!inPrivateOrBotSandbox(message)){
message.reply('Please use <#369896313082478594> or DMs to talk to bots.'); message.reply('Please use <#369896313082478594> or DM <@372832162572926987> to talk to tipbot.');
return; return;
} }
if (words.length < 4) { if (words.length < 4) {
@ -117,7 +117,7 @@ function doTip(message, tipper, words) {
function doHelp(message) { function doHelp(message) {
if(!inPrivateOrBotSandbox(message)){ if(!inPrivateOrBotSandbox(message)){
message.reply('Please use <#369896313082478594> or DMs to talk to bots.'); message.reply('Please use <#369896313082478594> or DM <@372832162572926987> to talk to tipbot.');
return; return;
} }
message.reply('Sent you help via DM!'); message.reply('Sent you help via DM!');