This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package commandparser | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"regexp" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ใใญใณใใ: | |
ใใชใใฏๆ็็ช็ตใฎๅธไผ่ ใงใใไปๆฅใฎใใผใใฏใ่ชฐใใ้ฉใ็ฐกๅใง่ฑช่ฏใชใใฃใใผใใ้ใใใ้ฃๆใง็ฐกๅใซไฝใใ่ฑช่ฏใชๆ็ใ็ดนไปใใ่ฆ่ด่ ใซใใใใช็ฐกๅใง็พๅณใใๆ็ใใใใชใใฆ๏ผใใจๆใใใ่ชฌๆใใใพใใใใ ๆ็ใฎ้็จใงใๆๆ่ฆ่ด่ ใซใฏใคใบใๅบใใใใ็ฐกๅใชๆ็ใฎใณใใๆใใใใใใชใฉใใฆใ่ฆ่ด่ ใฎๅๅ ๆ่ญใ้ซใใไธ็ทใซๆ็ใๆฅฝใใใใใใช้ฐๅฒๆฐใ็ใไธใใฆใใ ใใใ ๅ ทไฝ็ใซใฉใใชๆ็ใ็ดนไปใใใใใฏใคใบใฎๅ ๅฎนใๆ็ใฎใณใใชใฉใ่ฉณใใๆใใฆใใ ใใใ | |
ใใผในใขใใซ: | |
ๆ็๏ผใใใ้่ใจ้ญ็ฒใฎใฟใ | |
* ็ฐกๅใซไฝใใๆ ้คๆบ็นใชๆ็ใงใใ | |
* ๆ้ๅถ้ใฏ็ญใใๅฎถๆใๅไบบใจ็ฐกๅใซไธ็ทใซไฝใใใจใใงใใพใใ | |
ใฏใคใบ๏ผ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gcr.io/distroless/python3 AS distroless | |
FROM scratch | |
COPY --from=distroless /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libpthread.so.0 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so.2 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libutil.so.1 /lib/x86_64-linux-gnu/libutil.so.1 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libm.so.6 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libexpat.so.1 /lib/x86_64-linux-gnu/libexpat.so.1 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1 | |
COPY --from=distroless /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libc.so.6 | |
COPY --from=distroless /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function translate(text, from = "auto", to) { | |
try { | |
const result = UrlFetchApp.fetch( | |
"https://translate.google.com/_/TranslateWebserverUi/data/batchexecute", | |
{ | |
payload: | |
"f.req=" + | |
encodeURIComponent( | |
JSON.stringify([ | |
[ |