{"action":"opened","issue":{"url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/244","repository_url":"https://api.github.com/repos/kvangent/PokeAlarm","labels_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/244/comments","events_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/244/events","html_url":"https://github.com/kvangent/PokeAlarm/issues/244","id":179678309,"number":244,"title":"[ENHANCEMENT] channel friendly dynamic text location text","user":{"login":"nolageek","id":2931834,"avatar_url":"https://avatars.githubusercontent.com/u/2931834?v=3","gravatar_id":"","url":"https://api.github.com/users/nolageek","html_url":"https://github.com/nolageek","followers_url":"https://api.github.com/users/nolageek/followers","following_url":"https://api.github.com/users/nolageek/following{/other_user}","gists_url":"https://api.github.com/users/nolageek/gists{/gist_id}","starred_url":"https://api.github.com/users/nolageek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolageek/subscriptions","organizations_url":"https://api.github.com/users/nolageek/orgs","repos_url":"https://api.github.com/users/nolageek/repos","events_url":"https://api.github.com/users/nolageek/events{/privacy}","received_events_url":"https://api.github.com/users/nolageek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T04:37:32Z","updated_at":"2016-09-28T04:37:32Z","closed_at":null,"body":"## Enhancement Description\r\nAdd new dynamic tags for location that will replace spaces with dashes and optionally make all lowercase. \r\n\r\n## Use cases\r\nWhen creating channel and other notification streams, most do not allow spaces and usually default to all lowercase - specifically slack. In my case, I have a slack team that I use to provide notifications to my friends in different cities. I can use **\"channel\" : \"<city>\"** to have PokeAlarm dynamically send notifications to the different city channels with only one config. Washington, Chicago, Rockville all work fine (even with PokeAlarm capitalizing the first letter). However, since New Orleans contains a space, the channel becomes new-orleans and because PokeAlarm sends to New Orleans, the messages get sent to the default channel instead. I tried creating a channel named 'new\" just in case it ignored the letters after the space and that didn't work either.\r\n\r\nI think being able to clean up the location tags in this way would open up lots of new ways to send notifications without having to use separate webhooks for different locations.\r\n"}}
{"actor":{"display_login":"nolageek"}}