{"id":15031322,"url":"https://github.com/codedead/discord-translate-bot","last_synced_at":"2026-04-06T00:04:07.369Z","repository":{"id":239796909,"uuid":"800608488","full_name":"CodeDead/discord-translate-bot","owner":"CodeDead","description":"A Discord bot written in Rust to translate messages using Google Translate","archived":false,"fork":false,"pushed_at":"2024-07-12T10:48:15.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T22:51:02.813Z","etag":null,"topics":["discord","discord-bot","rust","rust-lang","rustlang","serenity"],"latest_commit_sha":null,"homepage":"https://codedead.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-14T16:51:00.000Z","updated_at":"2024-07-12T10:47:54.000Z","dependencies_parsed_at":"2024-05-15T12:24:58.131Z","dependency_job_id":"e618b921-3874-4e6c-a134-1da38e21a068","html_url":"https://github.com/CodeDead/discord-translate-bot","commit_stats":null,"previous_names":["codedead/discord-translate-bot"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDead%2Fdiscord-translate-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDead%2Fdiscord-translate-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDead%2Fdiscord-translate-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDead%2Fdiscord-translate-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDead","download_url":"https://codeload.github.com/CodeDead/discord-translate-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351839,"owners_count":20276908,"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","discord-bot","rust","rust-lang","rustlang","serenity"],"created_at":"2024-09-24T20:15:26.205Z","updated_at":"2025-12-30T00:30:14.778Z","avatar_url":"https://github.com/CodeDead.png","language":"Rust","readme":"# discord-translate-bot\n![GitHub top language](https://img.shields.io/github/languages/top/CodeDead/discord-translate-bot)\n![GitHub](https://img.shields.io/github/license/CodeDead/discord-translate-bot)\n[![Release](https://github.com/CodeDead/discord-translate-bot/actions/workflows/release.yml/badge.svg)](https://github.com/CodeDead/discord-translate-bot/actions/workflows/release.yml)\n[![Test](https://github.com/CodeDead/discord-translate-bot/actions/workflows/test.yml/badge.svg)](https://github.com/CodeDead/discord-translate-bot/actions/workflows/test.yml)\n\nA simple discord bot that translates messages using the Google Cloud Translation API.\n\n## Commands / Interactions\n\nThe bot has the following commands:\n\n* `!translate [target-language]` - Reply to any message to translate it to the target language. If the target language is not specified, the bot will translate the message to English.\n* `/translate-text [message] [target-language]` - Translate the provided message to the target language. If the target language is not specified, the bot will translate the message to English.\n* `!help` - Display a list of available commands and useful information.\n* `!register` - Register the `translate-text` command. This command is only available to users with the `ADMINISTRATOR` permission. \n* `!unregister` - Unregister the `translate-text` command. This command is only available to users with the `ADMINISTRATOR` permission.\n\n## Installation\n\nIn order to run this bot, you need to have a [Google Cloud](https://cloud.google.com/translate) account and a project with the Cloud Translation API enabled. You also need to have a Discord bot token. You can get one by creating a new bot in the [Discord Developer Portal](https://discord.com/developers/docs/intro).\n\nA `.env` file or environment variables are required to run the bot. The file should contain the following variables:\n\n```env\nDISCORD_TOKEN=your_discord_bot_token\nGOOGLE_TRANSLATE_TOKEN=your_google_cloud_translation_api_token\n# Optionally, you can change the log level\nRUST_LOG=info # or debug, trace, etc.\n```\n\nYou can install and run the bot by cloning the repository and running the following command:\n\n```bash\ncargo run\n```\n\nTo build a release version, run the following command:\n\n```bash\ncargo build --release\n```\n\nYou can then run the release version using the following command:\n\n```bash\n./target/release/discord_translate_bot\n```\n\n## Dependencies\n\n* [Rust](https://www.rust-lang.org/)\n* [dotenvy](https://crates.io/crates/dotenvy)\n* [env_logger](https://crates.io/crates/env_logger)\n* [reqwest](https://crates.io/crates/reqwest)\n* [serde](https://crates.io/crates/serde)\n* [serde_json](https://crates.io/crates/serde_json)\n* [serenity](https://crates.io/crates/serenity)\n* [tokio](https://crates.io/crates/tokio)\n* [log](https://crates.io/crates/log)\n\n## About\n\nThis library is maintained by CodeDead. You can find more about us using the following links:\n* [Website](https://codedead.com/)\n* [Twitter](https://twitter.com/C0DEDEAD/)\n* [Facebook](https://facebook.com/deadlinecodedead/)\n\nCopyright © 2024 CodeDead\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedead%2Fdiscord-translate-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedead%2Fdiscord-translate-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedead%2Fdiscord-translate-bot/lists"}