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.
.
├── 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- Clone the repository using the following command:
git clone https://github.com/astroclubiitt/CelestialAlert.git- Install the required dependencies using the following command:
pip install -r requirements.txt-
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.
-
Create a
.envfile 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- In Testing/debugging phase :
python bot.py- You can deploy the bot in a virtual private server or in a cloud platform like Heroku, AWS, etc.
- This bot is deployed on render and cron-jobs is used to monitor the uptime.
- To deployt in render:
build command:-
./build.sh
-
run command:-
python main.py
-
- The bot checks the current location of the
International Space Stationperiodically every 5 seconds. - The bot pings the server memebers when the ISS is in close promixity of the city.
- Tirupati, Gorakhpur, Delhi, Kanpur, Kaharjpur, Mumbai, Bengaluru, Chennai, Kolkata, Hyderabad, Tokyo, London, Sydney, Paris, Singapore.
-
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
$helpto get bot commands. -
Enable the intents so that it can read message events.
This project is licensed under the MIT License

