Information about SC2 Units, Buildings, Upgrades, Weapons and more
This generates a folder of unit data formatted in XML. This is done manually on the local machine with sc2 installed.
converts the XML to JSON format and outputs a such as 'balancedata.4.12.1.json'.
- As part of conversion if fixes various issues with switched names and ids and fields missing. The XML is de-normalized but has references and the JSON is somewhat more normalized.
- This JSON uploaded to Azure blob storage for consumption
Given the JSON file of sc2 balance data. Generate questions about features of the units and buildings in different formats:
- Language Understanding service .lu down:
sc2info-bot.lu
- QnA Knowledge Base file:
qnaKnowledgeBase.json
- Sc2IQ db input file (custom format):
questionInputs.json
Given a string, extract units, buildings, or weapons and the features to correlated with an question
E.g. "How much does a marine cost?" -> { type: unit, unit: marine, features: ['cost'] }
Sends the
Reads a file output by the generator such as 'qnaKnowledgeBase.json' and creates a new KB.
Reads a file output by the generator such as 'sc2info-bot.lu' and creates a new model.
A GraphQL based API that outputs data from the .JSON file.
A React web-based client which becomes sc2info.com
Generic bot command processor. Carries out the actions and is shared core of all bots. In other words common functionality between bot platforms is they all input strings and output strings.
E.g. Users can ask question using '!question' and it will respond.
Bot for Discord
Bot for Twitch
This is attempt to use https://typegraphql.com/ instead of manually defining definitions and deal with TypeScript compatibility.
It seems mostly complete but would need to test. Mainly questions about Union types.
This repository uses npm@7 for package consolidation
See Announcement: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/ Arborist Deep Dive: https://blog.npmjs.org/post/618653678433435649/npm-v7-series-arborist-deep-dive See Workspaces RFC: https://github.com/npm/rfcs/blob/latest/implemented/0026-workspaces.md