Skip to content

More usable format for moderation.screened.subs messages. #4

Description

@zephyyrr

Would it be possible to include a parsed version of the message->tags->system-msg field?
I want to do stuff like count twitch prime subs but have to now write string parsing logic in SQL (possible, but not exactly my favourite pasttime). The messages are also a bit too nested. Three layers for two values? A bit over the top in my opinion.

I would like to see something like

{
  "$meta": {
     ...
  },
  "id": { 
    "$type": "string", //Maybe GUID? Not sure what Twitch use for their user ids. 
      "$required": true, 
      "$description": "The id number of the user." 
   },
  "type": { 
    "$type": "enum", 
      "$required": true, 
      "$description": "The type of subscription",
      "$values": ["Prime", "Tier 1", "Tier 2", "Tier 3"] 
   },
  "name": { 
    "$type": "string", 
      "$required": true, 
      "$description": "The name of the twitch user that subscribed" 
   },
  "trailing":  { 
    "$type": "string", 
    "$required": false, 
    "$description": "The message following the system message." 
  },
  "length": { 
    "$type": "int", 
      "$required": true, 
      "$description": "The number of months in a row the user subscribed" 
   },
  "trailing":  { 
    "$type": "string",
     "$required": false, 
     "$description": "The message following the system message." 
  },
  "system-msg": { 
    "$type": "string", 
      "$required": true, 
      "$description": "The system message supplied by Twitch." 
    }
}

Or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions