Parser for Granblue Fantasy raid tweets.
Getting started
Installation
npm install gbf-raidfinder-parser
Usage
const tweetParser = ; const tweetText = `MVP AD3959A6 :参戦ID参加者募集!Lv75 セレスト・マグナhttps://t.co/abc123`;let valid = tweetParser;console;// Outputs: truelet parsed = tweetParser; consoledirparsed;/* Outputs: RaidTweet { text: 'MVP AD3959A6 :参戦ID\n参加者募集!\nLv75 セレスト・マグナ\nhttps://t.co/abc123', image: 'https://t.co/abc123', boss: Boss { text: 'Lv75 セレスト・マグナ', language: 'jp', level: 75, name: 'セレスト・マグナ' }, language: 'jp', raid: Raid { text: 'MVP AD3959A6 :参戦ID', code: 'AD3959A6', message: 'MVP' } } */ const randomTweet = 'random tweet';valid = tweetParser;console;// Outputs: falseparsed = tweetParser;// Throws: TypeError
License
MIT