Logo

dev-resources.site

for different kinds of informations.

Using Discord as an unlimited cloud storage service

Published at
12/31/2024
Categories
discord
cloudstorage
python
cli
Author
0xarnav
Categories
4 categories in total
discord
open
cloudstorage
open
python
open
cli
open
Author
7 person written this
0xarnav
open
Using Discord as an unlimited cloud storage service

Discloud is a locally run Discord bot that turns your personal Discord server into an unlimited cloud storage service. It runs on your PC as a Python script (I've been considering making an .exe file for easier distribution) and uploads all files from your selected folder.

Installation

  • Requires Python 3.x
  • Clone this repo using git clone https://github.com/4rnv/Discloud.git
  • Run pip install -r requirements.txt

This project uses the discord.py package to manage messaging and gateway connections from your local client to the Discord server.

Usage

Enable developer mode on your Discord account. On Discord, head into User Settings > Appearance > Advanced and enable Developer Mode.

Enable Developer mode

Create a basic Discord bot by following the instructions on the Discord Developer Portal.

Enable permissions

Generate bot token by clicking on reset token in Applications > YOUR_BOT_NAME > Bot.

Generate token

Add that bot to your server (refer to Guild installation in above links).

Installation

Copy your channel ID (right click on channel name) and bot token (from bot page), then add them to the .env file in the same directory as app.py. Name them as CHANNEL_ID and BOT_TOKEN respectively.

BOT_TOKEN=x0x0x0x0 # Alphanumeric
CHANNEL_ID=00000000 # This will be an integer

Enter fullscreen mode Exit fullscreen mode

In the app.py file, specify the path to the directory you want to monitor for new files. The default is set to ./upload.

  1. Run the bot using python app.py

Notes

Discord has a 25MB file limit for non-Nitro users, hence files which are greater than 25MB will be ignored.

There is some uncertainty regarding the file size limit. In September 2024 Discord had announced they were going to reduce the size limit to 10MB. However during my test run I was able to upload files up to 25MB.

You can also compress your larger files into a zip file and upload them (zip files are valid up to 100MB).

Make sure your bot has permissions to upload files to the server. The db.json file stores info about the files which have already been uploaded.

It is quite incredible how versatile Discord servers are. If you've been running out of storage space on your computer, you can configure your personal server to function as theoretically unlimited cloud storage.

GitHub repo: https://github.com/4rnv/Discloud

cloudstorage Article's
30 articles in total
Favicon
Data Transfer from S3 to Cloud Storage using GCP Storage Transfer Service
Favicon
EFS for Centralized Shared Storage
Favicon
Using Discord as an unlimited cloud storage service
Favicon
Leveraging AWS S3 for a Modern Nigerian Lifestyle: A Cloud Storage Solution
Favicon
Best Free Cloud Backup App For G-Drive + DropBox
Favicon
Migrating Legacy Systems to Cloud-Based Solutions
Favicon
Provide private storage for internal company documents
Favicon
Provide storage for the public website
Favicon
Provide private storage for internal company documents
Favicon
Unlock the Power of the Cloud: The Five Benefits of Streamlined Managed Services
Favicon
Top Features of SpectraCloud FTP Backup Service
Favicon
CREATING PRIVATE STORAGE FOR INTERNAL COMPANY DOCUMENTS
Favicon
How To Authenticate GCP Cloud Infra using Service Account with IAC Terraform
Favicon
How to Successfully Implement a Cloud-Based Data Warehouse
Favicon
Why Cloud Computing Professionals Are Leading the Tech Industry Boom
Favicon
What are the Advantages of Cloud Migration?
Favicon
How to Create a Resource Group and Storage Account on Azure
Favicon
Next-Gen Cloud Data Warehouse: Transforming Data Management for the Future
Favicon
Cloud Server Hosting Providers in USA
Favicon
How to Implement a Secure and Efficient File Sharing Solution for a Geographically Dispersed Company.
Favicon
Implementing Secure and Highly Available Storage Solutions for Company Data and Website Backup
Favicon
Struggling with Personal File Management? Habox Has the Solution
Favicon
Big Data Storage Trends and Insights
Favicon
How to use Cloud flare R2 storage with workers API & S3 compatibility
Favicon
SQL Server Native Backup and Restore on Amazon RDS : AWS Project
Favicon
Securing and Managing Cloud Storage for Private and Public Data with High Availability
Favicon
Building a Secure and High-Performance File Sharing System for Distributed Corporate Offices Using Azure Files
Favicon
Hosting a Static website on a private Amazon S3 bucket using CloudFront’s OAC
Favicon
Building a Reliable, High-Availability Storage Solution for Your Public Website
Favicon
Amazon EC2 Demystified: Exploring AWS's Flexible and Cost-Efficient Cloud Computing Solution

Featured ones: