Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

cheldt/mattslasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mattslasher

Master codecov

Simple http server, which handles mattermost slash commands.

Supported slashcommands:

  • /weather [cityname]

Configuration

Mattslasher is configurable via environment variables:

Mandatory

  • MATTSLASHER_PORT
  • OPENWEATHERMAP_API_KEY

Optional

  • 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)

Installation

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"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mattslasher.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages