Pyjac Info
- Team number 75
- Prompt: Retrieve weather updates (using APIs) for at least 4 cities across North America and post in a messaging platform.
- Skill Category: Intermediate
- Github
About The Project
Due to Covid remote learning has been made so common and as a result we as students spend lots of time on discord. So we thought that as things start to open up a weather bot on the application that we use the most would be a great opportunity to make something convenient useful for not just us but other students as well. At the base our bot is able to provide the weather for any city. We used JavaScript, bash and typescript to code and implement the bot. We learned how to code in typescript and use API's to display the information we need. Next for RainMan we intend to add many more features including multiple day forcast and an interactive weather map. We also intend to deploy the bot so it's available to anyone in the world to use. We are very excited to present this bot.
Features include:
Weather information in any inputted city including temprature, feels like, max/min, and humidity. A default list of 4 cities that can be personalized to user preference Even a message delete which can clear up some of that weather clutter. Use the RainMan bot link and add it to any server to get started.
Built With:
JavaScript Node.js Discord.js Bash
Getting Started
To get a local copy up and running follow these simple example steps.
Prerequisites download node.js: https://nodejs.org/en/download/
https://nodejs.org/en/download/
Installation Get API Keys at https://openweathermap.org/api and https://developer.here.com/develop/rest-apis
Create a discord bot and get Token at https://discord.com/developers/applications
Clone the repo
git clone https://github.com/guydmello/RainMan.git
Create a .env file in parent directory and insert API_KEY/TOKEN's
touch .env
Install NPM packages
npm install
Enter your API/TOKEN in .env
TOKEN = "Bot token here"
WEATHER_KEY = "Weather api key here"
MAP_KEY = "Map api key here"
Usage
Discord is a popular platform for many users today and has many extensions which can be used to enchance accessibility. Our weather bot RainMan allows users to easily access weather statistics in any city around the world. This allows discord users a convenient way to see weather in a matter of seconds along with many more commands which allows you to see your top 4 weather information around the world.
Roadmap
- Used discord.js
- Installed node.js
- Implemented RainMain in index.js
- Used a Weather API and Key
- Added a readme
Contact
- Guy D'Mello - guyrdmello@gmail.com
- Kavan Patel - kavan.canada@gmail.com
- Piyush Razdan - piyush.razdan@gmail.com
- Project Link: https://github.com/guydmello/RainMan
Acknowledgments/Citation
There are resources used to install, develop, and complete the project.
Built With
- .bat
- axios
- bash
- discord.js
- github
- javascript
- linux
- mapapi
- node.js
- weatherapi
Log in or sign up for Devpost to join the conversation.