SophiaH67 / xi-jinping-bot

Enforces chinese laws in discord
GNU Affero General Public License v3.0
18 stars 10 forks source link

Tweaking the word dictionary #8

Open teammate165 opened 2 years ago

teammate165 commented 2 years ago

Hey I was trying to find the variables.ts file to tweak the word list as well as the modules but they are nowhere to be found. Commit logs shows they were in the repository.

I'm new to running docker containers in general so might be looking at the wrong place, but digging through the containers didn't seem to yield any results, can't find the word dictionary that bot uses.

SophiaH67 commented 2 years ago

The variables.ts are located in https://github.com/marnixah/xi-jinping-backend/blob/master/src/variables.ts. If you want add your own things or remove them, at the moment you have to bind mount in your own file (-v argument in docker, volumes in the docker-compose), so you would need to mount a file with similar structure to the backend container at the path /app/dist/variables.js.

I am open to doing this through environment variables however, so would the following work for you?(the following would be environment variables specified with -e in docker run or environment in docker-compose)

Would also like to get your opinion on if these should add to the existing lists, or override them completely.