Skip to content

davidyen-888/Discord-Weather-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Weather Bot

Access your concurrent weather, anytime, anywhere!

Environment and Requirement

Local machine

pip3 install discord.py
pip3 install requests

Create a Procfile in your project's root directory and add following to it. It will contain a worker command that will start the bot.

worker: python main.py

Create a requirements.txt file and add required libraries to it.

# creates the output installed packages in requirements format.
pip freeze > requirements.txt

Create a runtime.txt file in your project's root directory and add following to it.

# python version
python-3.9.2

Heroku deployment

Settings

Add OpenWeatherMap API and Discord Bot Token to Config Vars

Deploy

Connects Heroku app to Github repository.

Choose Deploy Branch and enable Auto Deploy.

After then it will be look like thw following image.

Get the bot online

Resources

Enable the Dynos.

Test the bot!

ezgif com-gif-maker

The bot will now be online and ready to serve 24/7. If we commit on the remote repository, the bot will be updated and deployed automatically.

About

Checks the weather anywhere by the discord bot!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages