diff --git a/index.js b/index.js index 7e3c45f..a25cab2 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ logger.info("Started LBRY twitter tipbot."); stream.on("tweet", function(tweet) { if(tweet.user.screen_name === config.get("bot.handle").substring(1)) return; let msg = checkTrunc(tweet); - msg = msg.slice(msg.lastIndexOf(config.get("bot.handle"))).split(" "); + msg = msg.replace(/[\n\\]/g, " ").slice(msg.lastIndexOf(config.get("bot.handle"))).split(" "); if (msg.length >= 2) checkTweet(tweet, msg); }); @@ -123,7 +123,7 @@ async function doBalance(tweet, msg) { async function doDeposit(tweet, msg) { try { const post = await T.post("statuses/update", { - status: `@${tweet.user.screen_name} Your deposit address is ${await getAddress(id(tweet.user.id_str))}`, + status: `@${tweet.user.screen_name} Your deposit address is ${await getAddress(id(tweet.user.id_str))}.`, in_reply_to_status_id: tweet.id_str }); logger.info(