Simple http server, which handles mattermost slash commands.
Supported slashcommands:
- /weather [cityname]
Mattslasher is configurable via environment variables:
- MATTSLASHER_PORT
- OPENWEATHERMAP_API_KEY
- OPENWEATHERMAP_API_LANG e.g. en
- OPENWEATHERMAP_API_UNIT e.g. [metric|imperial]
- OPENWEATHERMAP_API_TIMEZONE e.g. Europe/Berlin
- OPENWEATHERMAP_API_CACHE_TTL e.g. 60 (Sec)
If available in Hex, the package can be installed
by adding mattslasher to your list of dependencies in mix.exs:
def deps do
[{:mattslasher, "~> 0.1.0"}]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mattslasher.