Sign inSign up

snekw/snwtm

By snekw

•Updated over 3 years ago

Image
0

267

snekw/snwtm repository overview

⁠SNW TM

A collection (maybe) of tools for TM.

Used with https://github.com/Snekw/SNWTMMap⁠

⁠Usage

This API can be used with any chat bot that supports fetching text from an url.

Multiple different texts can be defined by pressing "New" button. Remember to save any changes you make. And it's not a bad idea to store the texts on our own side as well.

The token should be kept private as it is used to authenticate changes to the backend.

⁠Nightbot

Nightbot supports urlfetch command that can be used to fetch the latest map info.

!commands add !map $(urlfetch https://tm.snekw.com/api/map/view/******/***** )

Substitute the url with the url provided on https://tm.snekw.com/map⁠ for the text you want to reply.

⁠Hosting

Docker image is provided through Docker Hub https://hub.docker.com/r/snekw/snwtm⁠.

Requires a MongDB database to be available.

⁠Environment variables

Few environment variables are required.

VariableExpected valuePurpose
MONGO_STRMongo DB connection stringProvides database connection information.
SNW_TM_HOSTURLProvides the application the user facing URL of the page to provide full links.

Tag summary

Content type

Image

Digest

sha256:b45358e76…

Size

44.4 MB

Last updated

over 3 years ago

docker pull snekw/snwtm