Use Discord as your Free Storage Drive
- Node.js (v18 or higher recommended)
- A Discord Bot Token and a Channel ID.
- Go to the Discord Developer Portal.
- Create a new application and add a Bot.
- Enable Message Content Intent under the Bot settings.
- Invite the bot to your server with
Send MessagesandAttach Filespermissions. - Create a dedicated channel and copy its Channel ID.
- Clone the repository:
git clone https://github.com/BharathBala21/discord-file-host.git cd discord-file-host - Install dependencies:
npm install
- Configure Environment Variables:
- Rename
.env.exampleto.env. - Fill in your
DISCORD_TOKENandUPLOAD_CHANNEL_ID.
- Rename
# Start the server
node server.jsThe app will be available here : http://localhost:3000.