No description
- Python 84.7%
- JavaScript 15.3%
| .vscode | ||
| gas | ||
| .gitignore | ||
| diff.py | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| sheet_session.py | ||
Matcha Localizations Bot
This is a Discord bot for automating various tasks for the Matcha Flavoured localization project. Currently, it:
- Allows a list of whitelisted users manage who can edit the sheet, since Google doesn't let you grant permission management selectively
- Logs updates to the localization keys with a nicely formatted diff
- Is not really that good
Selfhosting
Caution
The bot is designed very specifically for the use cases of the project. It probably won't be very helpful for you, though you can run it yourself if you want to.
On the Sheets side, you need an Apps Script project deployed as a web app running on your behalf such that the bot can interface with the sheet. See gas/Code.js
You also need these, either in .env or as environment variables:
TOKEN=[Discord bot token]
GAS_URL=[Apps Script deployment URL, ends with /exec]
WHITELIST=[whitelisted users, comma-separated without spaces]
DIFF_LOG_CHANNEL_ID=[channel to log key updates to]