{"id":21241888,"url":"https://github.com/tacticaltechjay/translator","last_synced_at":"2026-05-19T19:13:00.897Z","repository":{"id":112741863,"uuid":"369098896","full_name":"TacticalTechJay/translator","owner":"TacticalTechJay","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-11T03:35:22.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2025-06-02T10:03:47.221Z","etag":null,"topics":["discord-bot","eris-discord-bot","javascript","js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TacticalTechJay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-20T06:10:35.000Z","updated_at":"2021-12-24T20:56:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c629055-7191-4aee-bfb8-5b98eb6ac220","html_url":"https://github.com/TacticalTechJay/translator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TacticalTechJay/translator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacticalTechJay%2Ftranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacticalTechJay%2Ftranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacticalTechJay%2Ftranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacticalTechJay%2Ftranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TacticalTechJay","download_url":"https://codeload.github.com/TacticalTechJay/translator/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacticalTechJay%2Ftranslator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266285377,"owners_count":23905331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-bot","eris-discord-bot","javascript","js"],"created_at":"2024-11-21T00:57:24.389Z","updated_at":"2026-05-19T19:13:00.861Z","avatar_url":"https://github.com/TacticalTechJay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eTranslator Discord Bot\u003c/h2\u003e\n    \u003ch2\u003eA meant-to-be simple translator bot that uses \u003ca href=\"https://github.com/LibreTranslate/LibreTranslate\"\u003eLibreTranslate\u003c/a\u003e API\u003ch2\u003e\n\u003c/div\u003e\n \n# Config\n\nThis bot is configurable through environmental variables that can be defined like so:\n\n```\nPREFIX=! node index.js\n```\n\nThese are the following variables that you are required to set:\n\n|Config  | Default |Description|\n|--------|---------|-----------|\n|`TLURL` |\"localhost\"|Base URL to your own [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate)|\n|`PORT`  |   \"80\"  |Used for a translator api *if* it is hosted locally on your computer. **Used with default `TLURL` and if it was not previously defined.**|\n|`PREFIX`|   \"!\"   |The prefix used to interact with the discord bot.|\n|`DISCORD_TOKEN`|\"\"|A discord token for running a discord bot. Refer [here](https://discord.com/developers/docs/intro#bots-and-apps). **Not an optional variable.**|\n|`DATABASE_URL`|\"\"|A database URL used for [Prisma](https://prisma.io) to store a guild's config. **Not an optional variable.**|\n\n# Installing and Running\n\nHold onto your environmental variables, there are some prerequisites to using this discord bot.\n\n- A selfhosted [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) API\n- NodeJS\n- NPM\n- A database that Prisma [supports](https://www.prisma.io/docs/reference/database-reference/supported-databases).\n- A Discord Account.\n\nEverything checks out? Ok, now to get with setting this mayhem up!\n\n1. Initial setup\n\n    Install all dependencies\n    ```shell\n    npm install\n    ```\n\n    Generate Prisma Client\n    ```shell\n    npx prisma generate\n    ```\n2. Prepare your environemtnal variables!\n\n    Run the bot!\n    ```shell\n    TLURL=\"https://libretranslate.com\" PREFIX=\"tl!\" DISCORD_TOKEN=\"totallylegittoken\" DATABASE_URL=\"postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public\" node index.js\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacticaltechjay%2Ftranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacticaltechjay%2Ftranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacticaltechjay%2Ftranslator/lists"}