Skip to content

Tranced/slack-weather-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-weather-bot

A simple weather bot that uses the slackbots library: https://www.npmjs.com/package/slackbots

I used this library because it uses a similar pattern to Discord and Telegram bots which I'm familiar with.

Discord bot example: https://medium.com/@renesansz/tutorial-creating-a-simple-discord-bot-9465a2764dc0

In contrast, the heroku/nodejs slackbot tutorial code which is an express app: https://github.com/mattcreager/starbot

Work Arounds

The slackbots API does not have an accessible way to set the bot's Web Socket port. When deployed to Heroku, it would always give the error:

Web process failed to bind to $PORT within 60 seconds of launch

Which can be fixed by changing the dyno type to a worker since it doesn't need a port to listen to using this command:

heroku scale web=0 worker=1

Resources used

Some things I learned which weren't too useful for this project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published