Eclipse is a web application that allows users to securely log in using either their Discord or Google accounts and upload files. Uploaded files are sent to a Discord channel using a webhook, and users can view and download their uploaded files through the web interface.
I am not primarily a GUI developer, so the graphical user interface in this project sucks. The application has been tested locally, and its behavior on a live web server is unknown. Due to recent changes in Discord's CDN authentication mechanism, attachment URLs now include three new parameters: ex, is, and hm. These changes are intended to improve security but will affect how attachment URLs are managed in this application. So I can't really make a downloadable files with this project, the script is written BEFORE the changes were applied to the cdn links so it may not work.
1.
Clone the repository
git clone https://github.com/beeeegi/Eclipse
2.
Install requirements
cd eclipse
pip install -r requirements.txt
3.
Create a .env
File
Put it in the root directory and paste this in the file:
SECRET_KEY=your_secret_key
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
DISCORD_REDIRECT_URI=http://localhost:5000/callback
DISCORD_CHANNEL_ID=your_discord_channel_id
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://localhost:5000/google/callback
4.
Run the application with:
python3 app.py
You can access the app with this link: http://localhost:5000
You have two options here: Google or Discord
After logging in, you will be presented with an option to upload a file or view the library. In the library section, you have option to download the file again or view file's name, size and the upload date.