Git Product home page Git Product logo

papago-api-translate-bot's Introduction

Papago Discord Command


  • This project is remaked with TypeScript and Discord.js!

  • Recommend to use this version, but if you want to use Python version, please refer to this link.(Python version will be deprecated in near future)


Prerequisite

Discord Keys

  • DISCORD_API

    • Get discord bot token in here.
    • Create application and go to tab Bot
  • APPLICATION_ID

    • Get discord bot token in here.
    • Create application and go to tab General Information
  • GUILD_ID

    • Make sure your discord's developer mode in active
    • Make right click on Guild's icon and click Copy ID
  • Make privileged gateway intent as active in here.(tab Bot) img

Naver Papago API Keys

  • Client ID & Client Secret
    • Enroll your application in Naver Developers and apply new application in here and get Client ID and Client Secret in My application tab

Before Using

After you get all of keys I described in above, you need to fill keys in .env file

# Discord API Client
DISCORD_API=
APPLICATION_ID=
GUILD_ID=

# Naver API Client
X_Naver_Client_Id=
X_Naver_Client_Secret=

Start Application


  1. git clone project

    git clone https://github.com/J-hoplin1/Papago-API-Translate-Bot.git && cd Papago-API-Translate-Bot 
  2. Build docker image

    docker build -t (image name) .
  3. Run image as container

    docker run -d --name (container name) -v (directory you want to connect with container):/app/dist/logfile (image name)

Commands

  • /ping : Check bot's ping

  • /translate : Translate your content

    • Required
      • from : Language to be translated
      • to : Translated language
      • content : Content to translate
    • Not required
      • private : Yes if you want to see result in private(but temporary).

    img img

Supported Languages

  • Korean
  • English
  • Japanese
  • Chinese
  • Vietnamese
  • French
  • Italian
  • Russian
  • Indonesian

papago-api-translate-bot's People

Contributors

j-hoplin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

papago-api-translate-bot's Issues

이러한 에러명이 나오는데, pip install discord.py해도 적용이 안되요. ㅠㅠ

C:\Users\myipo\PycharmProjects\DiscordBot\venv\Scripts\python.exe C:/Users/myipo/PycharmProjects/DiscordBot/venv/Include/PapagoBot.py
Traceback (most recent call last):
File "C:/Users/myipo/PycharmProjects/DiscordBot/venv/Include/PapagoBot.py", line 6, in
import discord
ModuleNotFoundError: No module named 'discord'

Process finished with exit code 1


C:\Users\myipo\PycharmProjects\DiscordBot\venv\Scripts\python.exe C:/Users/myipo/PycharmProjects/DiscordBot/venv/Include/PapagoAPIBasicUsage.py
Traceback (most recent call last):
File "C:/Users/myipo/PycharmProjects/DiscordBot/venv/Include/PapagoAPIBasicUsage.py", line 30, in
entData = quote()
TypeError: quote() missing 1 required positional argument: 'string'

Process finished with exit code 1

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.