Merge branch 'mention_fix'
This commit is contained in:
commit
748d202a01
1 changed files with 2 additions and 4 deletions
6
index.js
6
index.js
|
@ -189,9 +189,7 @@ async function doTip(tweet, msg) {
|
|||
}
|
||||
const txId = await lbry.sendFrom(id(tweet.user.id_str), tipToAddress, Number(amount), 1);
|
||||
await T.post("statuses/update", {
|
||||
status: `@${tweet.user.screen_name} Tipped ${
|
||||
msg[2]
|
||||
} ${amount} LBC! \nTransaction: ${txLink(txId)} \nSee https://lbry.io/faq/tipbot-twitter for more information.`,
|
||||
status: `@${tweet.user.screen_name} Tipped ${amount} LBC! We'd say who it was to, but then Twitter would ban the bot. \nTransaction: ${txLink(txId)} \nSee https://lbry.com/faq/tipbot-twitter for more information.`,
|
||||
in_reply_to_status_id: tweet.id_str
|
||||
});
|
||||
logger.info(
|
||||
|
@ -223,7 +221,7 @@ function getValidatedAmount(amount) {
|
|||
return amount.match(/^[0-9]+(\.[0-9]+)?$/) ? amount : null;
|
||||
}
|
||||
function txLink(txId) {
|
||||
return `https://explorer.lbry.io/tx/${txId}`;
|
||||
return `https://explorer.lbry.com/tx/${txId}`;
|
||||
}
|
||||
function checkTrunc(tweet) {
|
||||
if (tweet.truncated) return tweet.extended_tweet.full_text;
|
||||
|
|
Loading…
Reference in a new issue