From 1edcb386e9f94afef8d3188a47fca562a431386c Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 21 Nov 2022 11:59:20 -0300 Subject: [PATCH] Guild Wars design --- README.md | 5 +---- design/guildwars2.md | 19 +++++++++++++++++++ design/mastodon.md | 2 +- design/rss.md | 6 ++++++ 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 design/guildwars2.md diff --git a/README.md b/README.md index 34bf0bf..74d5a0c 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,12 @@ Currently, I'm considering the following Capturers (based on my own life): - [ ] [Mastodon](design/mastodon.md) - [ ] [RSS](design/rss.md) -- [ ] Guild Wars 2 +- [ ] [Guild Wars 2](design/guildwars2.md) - [ ] Steam Capturer (?) - [ ] Netflix - [ ] Deezer - [ ] Calendar/CalDav - -### Guild Wars 2 Capturer - ### Steam Capturer ### Netflix Capturer diff --git a/design/guildwars2.md b/design/guildwars2.md new file mode 100644 index 0000000..c8c8b96 --- /dev/null +++ b/design/guildwars2.md @@ -0,0 +1,19 @@ +# Guild Wars 2 Capturer + +The Guild Wars 2 will capture the daily play stats, like WvW Rank, PvP Rank, +completed achievements and play time. + +## Configuration + +The only required configuration is the access token. + +## Internals + +We need to keep, locally: + +- Current played time, to be compared with the new one and point how long the + player played the game on the day. +- Achievements: This needs a two store: A list of current completed achievments + and a list of all achievements (there are different calls for each). +- Current WvW rank, to be compared with the new one. +- Current PvP rank, to be compared with the new one. diff --git a/design/mastodon.md b/design/mastodon.md index 10b7a67..6a89c06 100644 --- a/design/mastodon.md +++ b/design/mastodon.md @@ -6,7 +6,7 @@ private and such, which seem better. ## Configuration -The only configuration necessary would be the access token. +The only required configuration is the access token. ## Internals diff --git a/design/rss.md b/design/rss.md index 327d6d4..f317db5 100644 --- a/design/rss.md +++ b/design/rss.md @@ -4,6 +4,12 @@ Simple capturer for RSS. The hard part would be converting the HTML result into Markdown (although I've done this before, using [Markup5Ever](https://docs.rs/markup5ever/0.11.0/markup5ever/). +## Configuration + +The only required configuration is the feed URL. + +## Internals + Needs to store, locally: - `url`: to avoid mixing information of two different RSS readers;