tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 217 forks source link

warn: Could not parse NOTICE from tmi.twitch.tv: User not Found #374

Closed NekoSuneVR closed 4 years ago

NekoSuneVR commented 4 years ago

Actual behaviour:

[19:22] warn: Could not parse NOTICE from tmi.twitch.tv: { "raw": "@msg-id=invalid_user :tmi.twitch.tv NOTICE #chisdealhdyt :Invalid username: multikillerjp", "tags": { "msg-id": "invalid_user" }, "prefix": "tmi.twitch.tv", "command": "NOTICE", "params": [ "#chisdealhdyt", "Invalid username: multikillerjp" ] }

Expected behaviour:

const target = args[1]; client.timeout(channel, target, 300).then(function(data) { client.say(channel,/me 1000 Points been Spend on to Timeout ${target} on next 300 Secounds) }).catch(function(err) { client.say(channel,/me ${target} Already Timeout this channel. and you Wasted 1000 Points Timeout this User!`) });

`

Error log: `

[19:22] info: [#chisdealhdyt] : *!redeem timeout multikillerjp PaidRank Data Transfered Stats been Updated to SQL! [19:22] info: [#chisdealhdyt] Executing command: /timeout multikillerjp 300 [19:22] warn: Could not parse NOTICE from tmi.twitch.tv: { "raw": "@msg-id=invalid_user :tmi.twitch.tv NOTICE #chisdealhdyt :Invalid username: multikillerjp", "tags": { "msg-id": "invalid_user" }, "prefix": "tmi.twitch.tv", "command": "NOTICE", "params": [ "#chisdealhdyt", "Invalid username: multikillerjp" ] }

`

Server configuration

NOTE: i trying find this message from so i can put this on format mode say false statement.

my code is strict hiden because copyrighted by myself using database, and so much callouts to other platforms like discord, twitch, mixer, dlive and youtube.

this only happens when username not found but i cant give it false statement user not found because i don't know val that calling out form and format give it.

what im planning do is i going do if (Path to error begins as not found == "invalid_user") return console.log("USER NOT FOUND"); but i don't know where this calling out from.

AlcaDesign commented 4 years ago

Closed with 98ce79f3194838f63d9c663a972c769ffa610625 (#381)