Skip to content

A bot which will message on discord server when the ISS is passing over the city coordinates

License

Notifications You must be signed in to change notification settings

astroclubiitt/CelestialAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Celestial Alert

Logo

This is a discord bot developed for Gagan Vedhi Club server, the Astronomy club of Indian Institute of Technology, Tirupati. The bot checks the current location of the International Space Station periodically every 5 seconds and ping the server memebers when the ISS is in close promixity of the city.

Folder Structure:

.
├── assets
│   └── logo.png
│   └── permissions.png
│── .env
│    ├── TOKEN=Your Discord Bot Token
│    ├── CHANNEL_ID=Channel id in which you want the bot to prompt
├── .gitignore
├── main.py
├── app.py 
├── bot.py
├── build.sh
├── Procfile
├── LICENSE
├── README.md
└── requirements.txt

Installation and Running:

  1. Clone the repository using the following command:
git clone https://github.com/astroclubiitt/CelestialAlert.git
  1. Install the required dependencies using the following command:
pip install -r requirements.txt
  1. Either you can run locally or deploy it in a virtual private server, or you can configure an Arduino zero to do it, since the bot is not heavy.

  2. Create a .env file in the root directory and add the following variables:

TOKEN=YOUT_DISCORD_BOT_TOKEN
CHANNEL_ID=Channel id in which you want the bot to prompt
  1. In Testing/debugging phase :
python bot.py

Deployment:

  1. You can deploy the bot in a virtual private server or in a cloud platform like Heroku, AWS, etc.
  2. This bot is deployed on render and cron-jobs is used to monitor the uptime.
  3. To deployt in render:
    • build command:
      • ./build.sh
    • run command:
      • python main.py

Features:

  1. The bot checks the current location of the International Space Station periodically every 5 seconds.
  2. The bot pings the server memebers when the ISS is in close promixity of the city.

Contributors:

  1. Ikshitha - Mentee
  2. Manas - Mentor

API Used:

  1. Open Notify API

Citties Available:

  • Tirupati, Gorakhpur, Delhi, Kanpur, Kaharjpur, Mumbai, Bengaluru, Chennai, Kolkata, Hyderabad, Tokyo, London, Sydney, Paris, Singapore.

Note:

  • The bot is not optimized and configures, so we advise you to create your own bot and configure it according to your needs by utilizing the code. use $help to get bot commands.

  • Enable the intents so that it can read message events.

Permissions

License:

This project is licensed under the MIT License

About

A bot which will message on discord server when the ISS is passing over the city coordinates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages