Important
- Run
git clone https://github.com/Stef-00012/Discord-User-Installed-Apps
- Run
npm i
- Rename
config.example.js
toconfig.js
- Replace the required fields in the config file
- Run
npm run db:setup
in the same folder as thepackage.json
file - Run
npm run start
in the same folder as thepackage.json
file
token
: Your Discord bot tokenowners
: An array of Discord users allowed to use owner-only commandszipline
: Configs for/upload
and/shorten
to work (all the values arenull
able if you don't want to use zipline)token
: Your Zipline tokenurl
: Your Zipline hostnamechunkSize
: File chunk size, for chunked uploads (in mb)maxFileSize
: Max file size (in mb)
naviac
: Configs for the NAVIAC API (all the values arenull
able if you don't want to use N.A.V.I.A.C. API)username
: Username for the API authenticationtoken
: Token for the API authentication
web
: Configs for the web dashboard (all the values arenull
able if you don't want to use the web dashboard)enabled
: Whetever the web dashboard is enabled. If enabled, [Requires MongoDB]hostname
: Your web dashboard hostnameport
: Your web dashboard portsecure
: Whetever the dashboard useshttp
orhttps
keepPort
: whetever in the commands it should keep the port or remove it (eg. if you use a reverse proxy or port443
/80
)auth
: Discord OAuth2 configs for the web dashboardclientId
: Your Discord bot client IDclientSecret
: Your Discord bot client secretredirectURI
: Your OAuth2 redirect URIscopes
: Your OAuth2 scopes (identify
scope is required for the bot to work)
jwt
: Config for the JSON Web Token (used to store the user ID in the browser's cookie, to keep the user logged in)secret
: Your JSON Web Token secret (any string, possibly hard to guess)
If you previously used the bot with a MongoDB database, after step 4 run npm run db:transfer
in the same folder as the package.json
file and skip the step 5.
If you can not selfhost the bot, you can use the already hosted versions
- By Stef-00012 (me,
/ask
command avaible) - here By Stef-00012 (me,/aks
command not avaible) - here- By CreeperITA104 - here
- By Ninja-5000 - here
- Code: Stef-00012
- Dashboard Frontend: Ninja-5000