fxtwitter-docker/src/quote.ts
2022-07-15 16:36:49 -04:00

15 lines
410 B
TypeScript

import { linkFixer } from './linkFixer';
export const handleQuote = (quote: TweetPartial): string | null => {
console.log('quote tweet: ', quote);
let str = `\n`;
str += `════ ↘️ Quoting ${quote.user?.name} (@${quote.user?.screen_name}) ════`;
// str += '═'.repeat(Math.max(60 - str.length, 0));
str += ` \n\n`;
str += linkFixer(quote, quote.full_text);
return str;
};