TranslatorBOT

it is a simple and powerful discord bot, it been used for translating includes more than 100 language, it has a lot of integrated commands, includes a lot of systems for translating and leveling and economy.

Getting Started

First let me show you the commands and then i will show you how to set it up

the commands:

  1. /translate (language) (text)
  2. /detect (text)
  3. /help
  4. /langs
  5. /coins amount [user]
  6. /coins daily
  7. /coins transfer (amount) (user)
  8. /profile [user]
  9. /top levels
  10. /top coins
  11. /rp (user)
  12. /ping
  13. /autotrans (channel) (language)
  14. /multitrans (channel) (language1) (language2)
  15. /remove all
  16. /remove multitrans (channel)
  17. /remove autotrans (channel)
  18. /dislvl {owner only}
  19. /enblvl {owner only}

Now i will show you how to set up the bot

First go to Discord developer portal and login after you logged in with you discord account follow this steps

  1. Create an app

image-20211021143340874

  1. Name your app

image-20211021143509321

  1. Go to bot session

image-20211021143543329

  1. Click add bot

image-20211021143602444

  1. And then copy the token (Be careful and do not give your bot token to any one!)

image-20211021143705203

  1. Before that lets add the bot in our server by clicking on OAuth2 session

image-20211021143853234

  1. Then scroll down and choose like this

image-20211021144156614

  1. Then scroll down and choose bot’s permission and make sure you choose this as default

image-20211021144113813

And then copy the invite link and invite it to your server.

Now lets set up the database

First Go to MongoDB and create an account and then follow this setps

  1. Create a project

image-20211021151629009

  1. Name your project

image-20211021151652324

  1. Then click on Create Project

image-20211021151754506

  1. Then click build a database

image-20211021151852583

  1. Then choose the free shared

image-20211021151940910

  1. Then choose the cloud provider & region

image-20211021152149452

  1. Then click on create cluster and wait for moments

image-20211021152248634

  1. Then click Network Access

image-20211021155006414

  1. Then click on Add IP Adress

image-20211021155048501

  1. Then click on Allow access from anywhere then click on confirm

image-20211021155215988

  1. Then click on Browse Collections

image-20211021155835347

  1. Then click on Add My Own Data

image-20211021155923211

  1. Then make sure to name it as i am doing and click on create

image-20211021160049657

  1. Then click on the + sign and add the following list [multiat, dislvl, autotrans_channels, autotranslated_words, status, translated_words, usr_card, usr_lvl]

image-20211021160148504

  1. Then back to the database and click on Connect

image-20211021160412500

  1. Then choose a user name and password for the database user then click Create Database User

image-20211021160503618

  1. Then click on Choose a connection method

image-20211021160610107

  1. Then click on Connect your application

image-20211021160637427

  1. Then choose like this

image-20211021160713534

  1. Then copy the connection link and do not give it to any one and replace <password> with your database user password

image-20211021160802364

  • If you want to change the bot status go to the database and then go to status in collections and insert a document like this

image-20211021163004762

Now lets see config.json

In config.json you will see:

{
    "token": "Your bot token",
    "client": "link to connect to your mongodb client",
    "langs": ["en", "ar", "fr", "hi", "af", "sq", "am", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb",
        "ny", "zh-cn", "zh-tw", "co", "hr", "cs", "da", "nl", "eo", "et", "tl", "fi", "fy", "gl", "ka", "de", "el",
        "gu", "ht", "ha", "haw", "iw", "he", "hmn", "hu", "is", "ig", "id", "ga", "it", "ja", "jw", "kn", "kk",
        "km", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my",
        "ne", "no", "ps", "fa", "pl", "pt", "pa", "ro", "ru", "sm", "gd", "sr", "st", "sn", "sd", "si", "sk",
        "sl", "so", "es", "su", "sw", "sv", "tg", "ta", "te", "th", "tr", "uk", "ur", "uz", "vi", "cy", "xh",
        "yi", "yo", "zu"],
    "dkey1": "langdetect token1",
    "dkey2": "langdetect token2",
    "dkey3": "langdetect token3"
}
  1. in "token" you have to put your bot’s token
  2. in "client" you have to put your database client
  3. in "dkey1" and "dkey2" and "dkey3" put 3 APIs from https://detectlanguage.com/ after you create an account

Now your ready to upload your bot congrats!

GitHub

View Github