From 1029ee0dd91a9ecb268a6494f601fd8527d784e2 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 30 Jun 2022 00:52:22 +0700 Subject: [PATCH 1/2] Update README.md --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.md b/README.md index 4522b8e..8cfb694 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,45 @@ # 🍭 Yumi Multipurpose Discord Bot + +## 👜 Prerequisites + +- [NodeJS](https://nodejs.org/) +- [Python2](https://www.python.org/downloads/) +- [FFmpeg](https://ffmpeg.org/) +- C++ compiler + +## 🔧 Building for production + +1. Clone this repository +2. Install dependencies with ``yarn`` for yarn, or ``npm install`` for npm +3. Run the script ``yarn build`` or ``npm run build`` + +The output will be at ``/dist``, use ``node index.js`` to start + +## 🔧 Building for production (Docker) + +1. Clone this repository +2. Run ``yarn docker-build`` for yarn, or ``npm run docker-build`` for npm to build the image + +The output will be at ``/dist``, use ``node index.js`` to start + +## 🔧 Debugging for development + +1. Clone this repository +2. Install dependencies with ``yarn`` for yarn, or ``npm install`` for npm +3. Run the script ``yarn development`` or ``npm run development`` + +## 🌳 Environment Variables + +Take a look inside [.env.example](https://github.com/YuzuZensai/Yumi/blob/main/.env.example) for example + +- ``NODE_ENV`` Environment type, ``development`` or ``production`` +- ``DATABASE_URL`` Connection URL to your database. [More info](https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases/connect-your-database-typescript-postgres) +- ``DISCORD_TOKEN`` Your discord bot token +- ``DEVELOPER_IDS`` List of Discord Snowflake User ID that can access developer only modules, separated by ``,`` +- ``PRIVATE_BOT`` Should the bot invite be public? ``true`` or ``false`` +- ``OSU_API_KEY`` [osu! API v1 key](https://github.com/ppy/osu-api/wiki) +- ``YOUTUBE_COOKIE_BASE64`` YouTube cookies encoded in base64 [How to get cookies?](https://github.com/play-dl/play-dl/tree/main/instructions#youtube-cookies=)* + +\* Encode the cookies from the request headers base64 and put it in here instead of creating new file with ``play.authorization();`` code From 7dc9af257f5a50918a64e88419353985ca829feb Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 30 Jun 2022 00:57:05 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cfb694..96ee0e0 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The output will be at ``/dist``, use ``node index.js`` to start 1. Clone this repository 2. Run ``yarn docker-build`` for yarn, or ``npm run docker-build`` for npm to build the image -The output will be at ``/dist``, use ``node index.js`` to start +Image will be tagged as ``ghcr.io/yuzuzensai/yumi:latest`` ## 🔧 Debugging for development