FactpacksBlueprint: https://blueprints.launchpad.net/ibid/+spec/factpacks Since a number of Knab features can be done with factoids (Divine, RoShamBo, etc.), we need a way to distribute a collection of facts which bot owners can import into their database. These factpacks must also be removable. We therefore need to determine a file format, and import/remove mechanism. We also need to consider what happens to entries modified/added by users when removing the factpack. File FormatsPure pythonfacts = [
(("name1", "name2"), ("value1", "value2"))
]
CSV with alternating rows of names and valuesfoo, bar baz, quaz Line based with headersNames: foo bar Values: baz quaz Line based with prefixesName: foo Name: bar Value: baz Value: quaz JSON[ [["name1", "name2"], ["value1", "value2"]], ]
XMLI think it's compulsory to mention it... RemoveHardcode high factoid_ids in factpack, remove based on those
Mark entries in Ibid's database
Try to match factpack names/values against database
|