Skip to content

winniiew/WeatherDiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather Discord Bot ☁️

This is a Weather bot for Discord that displays temperature in °F/°C, wind conditions and time

Install Directly on a local computer

  • Create a Bot account and invite the Bot to a Discord server

  • Add main.py and keep_alive.py to a new repository on Replit

  • Replace TOKEN with the Discord Bot token

  • The Weather API key can be generated at Weather API and pasted into <WEATHERAPI_KEY>

http://api.weatherapi.com/v1/current.json?key=WEATHERAPI_KEY

Replit

Run the following in the bash shell:

pip install discord

pip install requests

  • Then run main.py, this should generate a URL https://Weather.winniiew.repl.co/ that can then be used in UptimeRobot to host the Discord bot.

Uptime Robot

  1. Click + Add New Monitor
  2. Select HTTP(s) under Monitor Types
  3. Paste the generated URL
  4. Change the monitoring interval to 5 minutes

weather1

Invite Bot to join Server

https://discord.com/api/oauth2/authorize?client_id=984035152281862145&permissions=259845990464&scope=bot

Commands

!w COUNTRY, CITY

Example

!w France, Paris

!w STATE, CITY

Example

!w Portland, Maine

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages