This repository was archived by the owner on Jan 9, 2025. It is now read-only.
Add custom ban fetcher #14
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new type (
custom) to the ban list imports. The purpose of this change is to allow for partnered organisations to include the date a user was banned in their data. It may also allow for further data to be shared in the future through simple changes.Sharing the date of the ban is currently only possible when using BattleMetrics, since OWI's
ban.cfgformat does not have a creation date.Below is the format expected for the
customban list type. It is indented to be simple enough that any source of data may be easily transformed to match.Ban Type:
steamIDandreasonare required for a ban to be added.createdandexpiresmay be omitted or set tonull. All dates should be provided in the ISO 8601 format.Example JSON response:
https://api.6thab.gg/public/bans2 (feel free to use this for testing)
[ { "steamID": "76561198115085734", "created": "2022-09-07T18:01:33.850Z", "expires": "2022-10-07T18:01:33.850Z", "reason": "Ban reason" }, ... ]This PR is only for ban imports, not exports.