-
Notifications
You must be signed in to change notification settings - Fork 1
/
open-discord-translator.yml
67 lines (66 loc) · 2.51 KB
/
open-discord-translator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: odt-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Mi # 10Mi should be plenty as the db is currently only used by replica configs
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: odt-deployment
spec:
replicas: 1
selector:
matchLabels:
app: odt-deployment
template:
metadata:
labels:
app: odt-deployment
spec:
containers:
- name: odt-deployment
image: ghcr.io/kalitsune/open-discord-translator:latest
env:
- name: TOKEN
value: "[your token here]" # https://discord.com/developers/applications
- name: GUILD
value: "" # if set, the commands will only be available in this guild whose ID is linked here
- name: SKIP_COMMAND_VALIDATION
value: "false" # if set to true, the bot will not check if the commands are up to date
- name: ACCENT_COLOR
value: "Blurple" # the color of the embeds
- name: DELETE_BUTTON_TIMEOUT
value: "10" # the time in s before the delete button disappears (leave empty for infinite)
- name: ENABLE_REPLICAS
value: "false" # if set to true, the bot will translate channels message as defined in the db by the `/replicas` command ⚠ NEEDS THE MESSAGE_CONTENT PRIVILEGED INTENT ⚠
- name: TRANSLATION_API_DRIVER
value: "google_search" # google_search google_cloud or deepl
- name: SELECTED_LANGUAGES
value: "en,es,fr,de,it,ja,ko,pt,ru,zh-CN,zh-TW,pl,nl,sv,ar,cs,da,fi,el,hi,hu,id,no,la,ro" # the languages you want to translate to and from (comma separated)
- name: GOOGLE_API_KEY
value: "" # your google API key (paid google driver)
- name: DEEPL_API_KEY
value: "" # your deepl auth key (deepl driver)
- name: LIBRETRANSLATE_URL # your libretranslate api url (libretranslate driver) (e.g. http://localhost:6969)
value: ""
- name: SQLITE_PATH
value: "/data/database.sqlite" # the path to the database file
- name: DATABASE_DRIVER
value: "sqlite" # sqlite is the only driver supported for now but feel free to add more
resources:
limits:
memory: "128Mi"
cpu: "50m"
volumeMounts:
- name: odt-volume
mountPath: /data/
volumes:
- name: odt-volume
persistentVolumeClaim:
claimName: odt-pvc