Skip to content

Commit

Permalink
feat: read notes
Browse files Browse the repository at this point in the history
- ItemData was completely rewritten
- a zip file with all item definitions is now included in wasplib, getting rid of the OSRSBox dependency
- Wiki API:
  - OSRS Wiki was blocking our connections, presumably because we all shared the same user agent and from their end it probably looked like someone was just spamming them.
  - It could also be because it had "Simba" in the user agent and they just don't agree of our usage of their APIs.
  - I've decided to comply better to their API usage request of having a descriptive user agent and the user agent now looks like this:
    `'Simba WaspScripts bot - User ID: ' + APIClient.UUID + ', Contact: [email protected]'`
  - With this user agent they can be sure it's not a single person spamming and also have my contact if they feel like reaching out.
  - Do remember that UUIDs are random and are not really tied to you in anyway, they do get your IP though, it's just how the internet works.
  - If you are not confortable with this you may disable the prices API with `ItemData.Disabled := True`
  - If after this they block our connections again I'll be removing pricing entirely from WaspLib or use a different API if I feel like it's worth the effort.
  • Loading branch information
Torwent committed Apr 6, 2024
1 parent c643a13 commit 99cb275
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 147 deletions.
7 changes: 4 additions & 3 deletions utils.simba
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ var
{$IFNDEF WL_TRECTARRAY_INCLUDED} {$I utils/geometry/trectarray.simba}
{$IFNDEF WL_TCIRCLEARRAY_INCLUDED} {$I utils/geometry/tcirclearray.simba}
{$IFNDEF WL_MISC_INCLUDED} {$I utils/misc.simba}
{$IFNDEF WL_BIOMETRICS_INCLUDED} {$I utils/biometrics.simba}
{$IFNDEF WL_HTTP_INCLUDED} {$I utils/http/http.simba}
{$IFNDEF WL_API_INCLUDED} {$I utils/http/api.simba}
{$IFNDEF WL_DATA_INCLUDED} {$I utils/data/data.simba}
{$IFNDEF WL_CONSUMABLES_INCLUDED} {$I utils/items/consumables.simba}
{$IFNDEF WL_PIXELSHIFT_INCLUDED} {$I utils/pixelshift.simba}
{$IFNDEF WL_FORMUTILS_INCLUDED} {$I utils/forms/formutils.simba}
{$IFNDEF WL_BIOMETRICS_INCLUDED} {$I utils/biometrics.simba}
{$IFNDEF WL_HTTP_INCLUDED} {$I utils/http/http.simba}
{$IFNDEF WL_API_INCLUDED} {$I utils/http/api.simba}

{$IFNDEF WL_SCRIPTFORM_INCLUDED} {$I utils/forms/scriptform.simba}
{$IFNDEF WL_DRAWING_INCLUDED} {$I utils/geometry/drawing.simba}
{$IFNDEF WL_COLOR_INCLUDED} {$I utils/color.simba}
Expand Down
Loading

0 comments on commit 99cb275

Please sign in to comment.