Discord-Wheather-Bot
A discord bot that will give a weather report of a city to a pre-configured discord channel.
It uses openwheather and discord APIs so you need to get api key from openweather and auth token from discord developer portal in order to use this bot.
Before running code
Before running code change the following:
In /cogs/main.py line:20 - Change your city(type:str)
In /cogs/main.py line:21 - Type in your openweather API key(type:str)
In /cogs/main.py line:33 - In place of Your channel ID add channel id where you need the bot to post(type:int)
In bot.py line:29 - Replace Your ID with your discord id(type:int)
In bot.py line:44 - Replace your bot token with token from discord dev portal(type:str)
Running the code
To run the bot open cmd in folder where bot.py file is present and type in python bot.py. You bott will be up and running in less then 10 secs.
Built With
- discord
- openweather
- python
- weather
Log in or sign up for Devpost to join the conversation.