translator-bot

translator-bot

概览

A discord bot that translates a given text repeatedly using Google Translate. For the keks and memes.


translator-bot

A discord bot that translates a given text repeatedly using Google Translate. For the keks and memes. Originally a Python script by SkullTech, made into a Python Discord bot by BKModding

Github Source and Docs

What is this and how is this useful?!

This bot uses the big brain of Google Translate to figure out the hidden meanings behind ordinary english text. Inspired by the following meme-videos.

Usage

Usage

Translate text repeatedly using Google Translate. For the keks and memes. 
Originally by SkullTech. Made into a Discord bot by BK Modding

Usage: !translate [-h] [-n NUM] [-l LANGS [LANGS ...]] (-t TEXT)

Required arguments:
-t TEXT, Input text

Optional arguments:
-h HELP, Show this help message and exit
-n NUM,  Number of times to go through the languages.
-l LANGS [LANGS ...], ISO 639-1 codes of the languages to use.

NOTE: All optional arguments must come before the TEXT argument (-t)

The default values of the optional arguments are
    * NUM 10
    * LANGS de ko la ja eo
    
NOTE: total number of translations is NUM * LANGS

Here's a short listing of all the ISO 639-1 codes available:
af sq am ar hy az eu be bn bs bg ca ceb ny zh-cn zh-tw co hr cs da nl en eo et 
tl fi fr fy gl ka de el gu ht ha haw he hi 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 or 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 ug uz vi cy xh yi yo zu

A more detailed listing which includes the corresponding language names can be found here:
https://gist.github.com/BK-Modding/25e5a787486baaabec434bc6a1a96670

A simple use-case can be as follows

!translate -t There's vomit on his sweater already, mom's spaghetti

Output:
[*] "There's vomit on his sweater already, mom's spaghetti" but translated 50 times!

Nikel-spaghete water (water spaghetti nickel) is solved.

A more involved use-case which uses all the available arguments.

!translate -n 10 -l de ko hi -t There's vomit on his sweater already, mom's spaghetti

Output:
[*] "There's vomit on his sweater already, mom's spaghetti" but translated 30 times!

Your sweater is already spaghetti to celebrate your mother.

评分和评论


5

1 评论

只能由注册用户留下评论。所有评论都由Top.gg版主主持。 请确保在发布之前检查 我们的指南

5 星

1

4 星

0

3 星

0

2 星

0

1 星星

0



_.real_.
_.real_.
over 3 years ago

i have a problem when i try to translate its just stick on Translation Requested Recieved



Top.gg

探索海量Discord机器人和应用

支持

提交服务单

管理Cookie设置

合作伙伴

Medal

MCP Servers