Giter Site home page Giter Site logo

project-weather_bot's Introduction


WeatherBot 🌀

A fully customizable bot built with Pycord


About β€’ Features β€’ Dependency β€’ Working


❓ About

Discord Weather Bot is a fully constomizable Discord Bot that is growing constantly.This bot look for a specific command prefix, such as "#" in our example of Weather Bot. When this combination of are primarily is entered on a server where the bot programme is present and has been allowed access to read the messages, the bot is activated and determines which answer to deliver based on the functions specified. The needed output is sent to the guild if the command is found. Occasionally, data is fetched through an API request to a third-party service.


❗ Features

  • Weather Bot is able to perform multiple functions while present in a discord server.
  • It can be modified to perform several more functions in the future if required.
  • It is able to read messages and commands that are made by the discord users on a server.
  • It is able to forecast the weather details of any city or country when commanded with β€œw city name” where the city name is the name of the city of which the user wants to know about the weather.
 if message.content.startswith('#w'):
  • Thus, any discord user who wants to get a weather forecast of his desired city would have to specify his command to β€œ#w”.
  • It promotes user interaction on the server.
  • If we input an invalid city name, the bot will return an error message.

πŸ“° Dependency

  • For building this project, I did require multiple things to bring out the final outcome.
  • Initially for interacting I had to use the discord API integration, discord.py( β€œdiscord.py is a modern, easy to use, feature-rich, and async ready API wrapper for Discord.”).
  • But later Pycord has been used over discord.py for the convenience of implementing Slash Command.
  • After that for weather forecasting and JSON parsing the libraries and modules used here are requests from the urlib library and JSON for JSON parsing.
  • For getting the weather details about any city OpenWeatherMap API has been used.
  • Future potential is that it can be connected to a database like MongoDB for fetching previous Weather history.

πŸ›  Working

image

image


project-weather_bot's People

Contributors

richabhowmik03 avatar mayurishinde27 avatar

Watchers

 avatar

Forkers

richabhowmik03

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.