SNW Map Util

A plugin by Snekw

SNW Map Util
Downloads 106
Updated 1 year ago
Released 2 years ago
Created 2 years ago
Numeric ID 187
Signed
Game Trackmania

Utility to get last played map info through a web API.

Requires a token from https://tm.snekw.com/map or self hosted version of https://github.com/Snekw/SNWTM.

Getting Started

  1. Go to https://tm.snekw.com/map in your browser.
  2. Copy the "Token" found by clicking "> Token". The token looks like "08ad5ceb-0e96-44b7-9851-38d09e611a85".
  3. Install this plugin.
  4. Go to plugin settings for "SNWTMMap"
  5. Paste the token from step 2 to the "Token" field.
  6. Check "Enabled" checkbox.
  7. Setup your chat bot.
    • Nightbot:
      • !commands add !map $(urlfetch https://tm.snekw.com/api/map/view/****/**** )
      • Replace the url with the url found on tm.snekw.com/map under "Texts" section.
    • StreamElements:
      • !command add map ${urlfetch https://tm.snekw.com/api/map/view/****/****}
      • Replace the url with the url found on tm.snekw.com/map under "Texts" section.
    • Moobot:
      • Create a new custom command
      • Select "Response" as "URL fetch - Full (plain) response"
      • Paste the url to "URL to fetch"
      • Leave all other URL fetch parameters as default
    • Other bots:
      • Most bots have some form of custom API support
      • Most commonly it's named URL-fetch, customapi or readapi
      • Follow the instructions for your own bots version of this and it should work

Config

  • Enabled - Toggle if the plugin is enabled or not. When enabled will send the map info shortly after map load.
  • Token - Token that is used to authenticate the map data when sending to server. This is private information and shouldn't be shared with others. You can get your token from https://tm.snekw.com/map

Advanced

  • Endpoint - Used if a self hosted version of SNWTM is used. Set to the URL to the API of the self hosted version.

Source: https://github.com/Snekw/SNWTMMap Source for tm.snekw.com: https://github.com/Snekw/SNWTM

Changelog

0.0.4 - 1 year ago

Add a way to easily get the currently in use token back from the plugin.

0.0.3 - 2 years ago

Made Token input a password input.

0.0.2 - 2 years ago

Retry sending map data 5 times. Fix edge case where plugin got stuck. Improved logging.

View all changelogs