Skip to content

jjuanrivvera/open-translator-discord-bot

Repository files navigation

open-translator-discord-bot

Discord translator bot that use LibreTranslate or Google Translator built with discordjs v12

Folder structure

src/
    commands/
    config/
    events/
    helpers/
    models/
    util/
tests/

Requirements

  • Docker and Docker Compose (optional)
  • MongoDB with guilds collection
  • guilds collection fields: id, name, prefix, provider, autoTranslate

Run

  • Execute: copy .env.example .env and fill the .env values
  • Execute: docker-compose up -d node and docker-compose exec node sh -c "npm install" to install dependencies
  • Finally run with docker using the command: docker-compose up -d

Available commands

Let's assume the prefix is !. The <> is for required arguments and [] for optional ones.

Help

Displays help menu

Usage: !help


Image

Translate image text

Usage: !image <language> [link|attachment]

Example: !image es https://static.dezeen.com/uploads/2015/03/Nike-Just-Do-It_dezeen_sq.jpg

Note: this command requires a lot cpu and it may not work on cloud-providers free tier instances

Invite

Invite this bot to discord server

Usage: !invite


Languages

Display available languages supported by provider

Usage: !languages <provider>


Ping

Ping comand

Usage: !ping


Prefix

Manage prefix

Usage: !prefix [prefix]

Example: !prefix +


Provider

Manage provider

Usage: !provider [provider]

Example: !provider libre-translate


Translate

Translate command

Usage: !<language> <text>

About

Discord translator bot based on LibreTranslate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published