Skip to content

Kujo01243/Python-Discord-weather-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Setup Guide for Your Own Server

Follow these steps to set up the bot on your own server:

  1. Obtain the Bot Token
    Find your Bot Token and insert it into the global_variables.

  2. Create a Weather API Key
    Sign up at OpenWeatherMap to create a Weather API key and insert it into the global_variables.

  3. Create a Channel on Your Server
    Create a channel specifically for the bot to prevent timeouts. The bot will send a message to this channel every 5 seconds.

  4. Obtain the Channel ID
    Find the Channel ID for the newly created channel and insert it into the global_variables.

  5. Install Required Libraries
    Run the following commands to install the necessary libraries:

    • Install Discord.py:
      pip install discord.py
    • Install Requests:
      pip install requests
    • Install JSON:
      pip install json
    • Install Time:
      pip install time
  6. Start the Script
    Run the weatherbot.py script.

  7. Run Certificate Installation on MacBook
    In the Python folder on your MacBook, execute Install Certificates command.

About

A simple Discord weather Bot. Not for production. School project for M122.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages