Automatically translates and replies to cross-posted messages.
- Native Node.js or Docker
- Google App Script
- The script in gas-script.js must be installed and deployed as a web app.
- Vaild Discord bot & token
- Create a Google Apps Script file and write the contents of gas-script.js.
- Click Deploy -> New deploy and create a new deployment for the web app.
Specify "everyone" as the user who can access. - Copy the URL of the created web app.
Works in Node.js or Docker Compose environment.
If you want to use Docker Compose, write the following in compose.yaml
:
services:
app:
image: ghcr.io/tomacheese/discord-crosspost-auto-translate
volumes:
- type: bind
source: ./data
target: /data/
init: true
restart: always
You can then refer to the configuration section to create a configuration file and then launch it with docker compose up -d
.
If running in a Node.js environment, the version specified in .node-version is recommended.
Download and extract discord-crosspost-auto-translate_vX.Y.Z.zip
from the release page in the latest release.
After that, you can start it with node index.js
after creating a configuration file with reference to Configuration section.
The configuration file data/config.json
is used by default.
If the environment variable CONFIG_FILE
or CONFIG_PATH
is set, the specified value is taken as the path to the configuration file.
See here for the JSON Schema of the configuration file: schema/Configuration.json
{
"$schema": "https://raw.githubusercontent.com/tomacheese/discord-crosspost-auto-translate/master/schema/Configuration.json"
}
The license for this project is MIT License.