Discord-based file sharing https://fyle.uk
Go to file
May 783d6be808
remove the stupid webdrop thing
its not like i was ever gonna complete it lmfao
sharedrop.io exists anyway
2023-10-08 20:20:27 -07:00
.vscode this code SUUUUCKs but i dont CARE 2023-02-26 10:47:03 -08:00
assets mail-unlink: fixup icons, fix setemail 2023-09-30 21:41:29 -07:00
pages 🚀🎉 Bump to beta 2023-08-01 17:40:11 +00:00
src TSDoc files.ts & errors.ts 2023-10-03 13:37:37 -07:00
.gitignore Experimental, and very bad & likely broken email 2023-07-18 19:37:10 -07:00
config.json remove the stupid webdrop thing 2023-10-08 20:20:27 -07:00
LICENSE this code SUUUUCKs but i dont CARE 2023-02-26 10:47:03 -08:00
package-lock.json @Jack5079's suggestions (hopefully these work lol) 2023-08-12 09:53:53 +00:00
package.json begin hell 2 2023-10-01 15:59:24 -07:00
README.md add silly live test instance 2023-10-08 20:18:34 -07:00
rollup.config.mjs @Jack5079's suggestions (hopefully these work lol) 2023-08-12 09:53:53 +00:00
tsconfig.json this code SUUUUCKs but i dont CARE 2023-02-26 10:47:03 -08:00

monofile

The open-source, Discord-based file sharing service.
Flagship instanceLive test instance


Setup

First, install monofile's prerequisites...

npm i

Then, add your bot token...

echo "TOKEN=INSERT-TOKEN.HERE" > .env

and, in addition, SMTP authentication...

echo "\nMAIL_USER=user@example.com" > .env
echo "\nMAIL_PASS=password here" > .env

Invite your bot to a server, and create a new config.json in the project root:

// config.json
{
    "maxDiscordFiles": 20,
    "maxDiscordFileSize": 26214400,
    "targetGuild": "1024080490677936248",
    "targetChannel": "1024080525993971913",
    "requestTimeout":120000,
    "maxUploadIdLength":30,

    "accounts": {
        "registrationEnabled": true,
        "requiredForUpload": false
    },

    "webdrop": {
        "accountRequired": false
    },

    "mail": { // nodemailer transport options
        "host": "smtp.fastmail.com", // or your mail provider of choice
        "port": 465,
        "secure": true,
        "auth": {
            "user": "REPLACE-WITH-YOUR-ALIAS@YOURDOMAIN.COM",
            "pass": "REPLACE-WITH-YOUR-GENERATED-PASSWORD"
        }
    }
}

Then, compile:

tsc && sass src/style:out/style && rollup -c

and start.

npm start

monofile should now be running on either env.MONOFILE_PORT or port 3000.

Disclaimer

Although we believe monofile is not against Discord's developer terms of service, monofile's contributors are not liable if Discord takes action against you for running an instance.

License

Code written by monofile's contributors is currently licensed under Unlicense.

Icons under /assets/icons were created by Microsoft, and as such are licensed under different terms (MIT).