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
- Go to https://tm.snekw.com/map in your browser.
- Copy the "Token" found by clicking "> Token". The token looks like "08ad5ceb-0e96-44b7-9851-38d09e611a85".
- Install this plugin.
- Go to plugin settings for "SNWTMMap"
- Paste the token from step 2 to the "Token" field.
- Check "Enabled" checkbox.
- 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