Apart from base USERDATA sent by Twitch with every message, Twitch Bot also stores these processed values, usage of which is explained below.
{
"dmcroww": {
...
"channel": "dmcroww",
"tmi_sent_ts": "1729022787478",
"display_name": "DMCroww",
user_id": "62897492",
"login": "dmcroww",
"nick": "SussyBaka",
"color": "#1E90FF",
"c": "hsl(210,100.0%,50%)",
"pn": " (She/They)",
"limit": 10,
"lastTime": 1683158071606,
"kokSize": "",
"attendance": false,
"YTsearch": {
"id": "KCBS5EtszYI",
"msg": "Now playing @dmcroww's song request: \"Santana - Put Your Lights On\"",
"user": "dmcroww",
"length": "4:18",
"title": "Santana - Put Your Lights On",
"shortTitle": "Santana - Put Your Lights On",
"author": "SantanaVEVO",
"thumbnail": "https://i.ytimg.com/vi/KCBS5EtszYI/default.jpg",
"hideVid": true,
"isShort": false
}
}
- channel: parsed channel name of the chatroom
- tmi_sent_ts: sent timestamp
- display_name: login with proper capitalisation
- user_id: twitch user ID of the sender
- login: username of the account used to send the message
- nick: nickname set by using the
!nick
command
- color: user's chat color sent by twitch
- c: parsed color of user for overlays, adjusted for readability
- pn: pronouns fetched from pronounDB.org API
- limit: number of available interactions for user (spam prevention)
- lastTime: timestamp of last 'limit' point added
- kokSize: result of
!kok
command
- attendance: whether the user triggered the "attendance" reward (resets at start of each stream)
- YTsearch: processed Google's YoutubeAPI data upon using the
!request
related commands
- id: ID of the song/video found
- msg: parsed message for chat, announcing who requested the video/song when it starts
- user: username/login of the user for filtering purposes during processing (queue lenght, user request limit etc.)
- length: length of the requested video/song
- title: title of the requested song/video for overlays
- shortTitle: length-limited title
- author: author/uploader of requested video/song
- thumbnail: URL of the video/song's thumbnail
- hideVid: boolean flag denoting if the video should be shown on stream overlay
- isShort: boolean flag used to decide which overlay format to use (vertical/landscape)
For any additional info please contact @DMCroww on Twitch, Discord, or X (formely Twitter)