sogebot / sogeBot

sogeBot - Free Twitch Bot built on Node.js
https://sogebot.xyz/
GNU General Public License v3.0
287 stars 65 forks source link

resub parsing error #2086

Closed Banonevar closed 5 years ago

Banonevar commented 5 years ago

Expected behavior

Actual behavior

32|bot | 2019-04-06T19:46:04.183 !!! ERROR !!! Error parsing resub event 32|bot | 2019-04-06T19:46:04.184 !!! ERROR !!! { _raw: 32|bot | "@badge-info=subscriber/4;badges=subscriber/3;color=#FF69B4;display-name=white_glaz;emotes=;flags=;id=25d9b9af-80b5-418e-9807-b48d5e42a65c;login=white_glaz;mod=0;msg-id=resub;msg-param-cumulative-months=4;msg-param-months=0;msg-param-should-share-streak=0;msg-param-sub-plan-name=Channel\sSubscription\s(bot);msg-param-sub-plan=1000;room-id=106729827;subscriber=1;system-msg=white_glaz\ssubscribed\sat\sTier\s1.\sThey've\ssubscribed\sfor\s4\smonths!;tmi-sent-ts=1554569164104;user-id=137002857;user-type= :tmi.twitch.tv USERNOTICE #sad_bot :Дережабль АГА", 32|bot | timestamp: 2019-04-06T16:46:04.104Z, 32|bot | username: 'tmi.twitch.tv', 32|bot | command: 'USERNOTICE', 32|bot | channel: '#sad_bot', 32|bot | tags: 32|bot | { badgeInfo: 'subscriber/4', 32|bot | badges: { subscriber: 3 }, 32|bot | color: '#FF69B4', 32|bot | displayName: 'white_glaz', 32|bot | emotes: [], 32|bot | flags: true, 32|bot | id: '25d9b9af-80b5-418e-9807-b48d5e42a65c', 32|bot | login: 'white_glaz', 32|bot | mod: '0', 32|bot | msgId: 'resub', 32|bot | msgParamCumulativeMonths: '4', 32|bot | msgParamMonths: '0', 32|bot | msgParamShouldShareStreak: '0', 32|bot | msgParamSubPlanName: 'Channel\sSubscription\s(bot)', 32|bot | msgParamSubPlan: '1000', 32|bot | roomId: '106729827', 32|bot | subscriber: '1', 32|bot | systemMsg: 32|bot | "white_glaz subscribed at Tier 1. They've subscribed for 4 months!", 32|bot | tmiSentTs: '1554569164104', 32|bot | userId: '137002857', 32|bot | userType: undefined, 32|bot | bits: undefined, 32|bot | emoteSets: undefined }, 32|bot | message: 'Дережабль АГА', 32|bot | isSelf: false, 32|bot | parameters: 32|bot | { cumulativeMonths: '4', 32|bot | months: 0, 32|bot | shouldShareStreak: '0', 32|bot | subPlanName: 'Channel Subscription (bot)', 32|bot | subPlan: '1000' }, 32|bot | event: 'RESUBSCRIPTION', 32|bot | systemMessage: 32|bot | "white_glaz subscribed at Tier 1. They've subscribed for 4 months!" } 32|bot | 2019-04-06T19:46:04.185 !!! ERROR !!! ReferenceError: getLocalizedName is not defined 32|bot | at TMI.getLocalizedName [as resub] (/root/bots/boty/src/bot/tmi.js:393:24)

Steps to reproduce

Additional informations

Banonevar commented 5 years ago

Guess same as https://github.com/sogehige/sogeBot/issues/2063