Code Monkey home page Code Monkey logo

discord-translator's Introduction

Discord Translator

Open source Discord Translator bot allowing users to host their own translator for their server.

Currently this only works for one server at a time however this should change in the near future and allow multi-server translations.Please note: Google Translate API allows 500k characters to be translated for free per month and charge after that.


Installation

Prerequisites


First clone the repository using

gh repo clone MilesTheGOAT/discord-translator

Alternatively download and unzip the files.

Navigate to the project directory in terminal/command prompt and run npm install to install the project dependencies.

Rename .env.example to .env and replace the following information with your own: TOKEN=Your_Discord_Bot_Token, GOOGLE_PROJECT_ID=Project_ID_With_Translate_API

Now we have set up the application we need to set up the Discord server, create 4 channels name general-english, general-spanish, general-german and finally general-french.

Now everything is set up if you have not already invited the bot to your channel please do so now.

To start the bot open terminal/command prompt in the containing folder and use node app.js alternatively you can host the translator on a machine that is always on like a server and use a process manager such as PM2 to keep it running 24/7.

TODO

  • Add multi-server functionality
  • Be able to assign users a group from a reaction to stop notifications from all channels
  • Make code more elegant

Donations

As this bot will be hosted for anyone to use once multi-server support has been added if anyone would like to contribute towards helping the bot stay online (server & API costs) it would be greatly appreciated.

BTC: 1DBTmc2wsy6pPUPPDWou4hGBgsDXTFoG5

BTC(SegWit): bc1qsv3vtt6usw88d09eruj6nd5y8ac5r20wg7d4zd

Monero: 84Ls858NWtK9AxQ1Adayk2N3VKMMFWiyEfpFSFJapxw6PmtWjNx8cyEMFKwXRLgfmqPK5hwaoUNQa5KcKsQQ3t38166VYvt

License

This project makes use of the MIT license, please familiarise yourself with the license before using or altering the project.

discord-translator's People

Contributors

milesthegoat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.