ximfx / Lang-Bot-2

Second rendition of Lang Bot, slightly cleaner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Lang Bot 2 by Coby Hong

Introduction

Easy and fast commands for back and forth language translations in Discord chats.
Using discord.py and googletrans API. Hosted on Heroku.
Chat with people with differing dialects in a manner that feels natural.
Both parties will be able to communicate with ease thanks to googletran's ability to detect and translate any written language.

*NEW: If in a voice channel, bot will perform text-to-speech!
*Possible Bugs:
-If cannot disconnect from channel, may have to do !trjoin and then !trleave.

*Current cons: -Bot only allows one person to do text-to-speech (tts) at a time (well duh there's only one bot).

★ Installation ★

Simply invite the bot! No hassle!
Here's the link: Click Here

Commands

!tr [language-tag] [message] - declare language you want to translate followed by your message.
!trjoin - join voice channel user is in. will perform text-to-speech. !trleave - leave voice channel user is in.
!trhelp - list of commands.
!trlang - link back to this github page containing list of possible languages at bottom
!trping - message showing bot is live and responsive.
!trabout - just gives information about me.

Example:

alt text alt text

Available languages with prefixes (EX: Japanese would be !tr ja [your message])

af : afrikaans
sq : albanian
am : amharic
ar : arabic
hy : armenian
az : azerbaijani
eu : basque
be : belarusian
bn : bengali
bs : bosnian
bg : bulgarian
ca : catalan
ceb : cebuano
ny : chichewa
zh-cn : chinese (simplified)
zh-tw : chinese (traditional)
co : corsican
hr : croatian
cs : czech
da : danish
nl : dutch
en : english
eo : esperanto
et : estonian
tl : filipino
fi : finnish
fr : french
fy : frisian
gl : galician
ka : georgian
de : german
el : greek
gu : gujarati
ht : haitian creole
ha : hausa
haw : hawaiian
iw : hebrew
hi : hindi
hmn : hmong
hu : hungarian
is : icelandic
ig : igbo
id : indonesian
ga : irish
it : italian
ja : japanese
jw : javanese
kn : kannada
kk : kazakh
km : khmer
ko : korean
ku : kurdish (kurmanji)
ky : kyrgyz
lo : lao
la : latin
lv : latvian
lt : lithuanian
lb : luxembourgish
mk : macedonian
mg : malagasy
ms : malay
ml : malayalam
mt : maltese
mi : maori
mr : marathi
mn : mongolian
my : myanmar (burmese)
ne : nepali
no : norwegian
ps : pashto
fa : persian
pl : polish
pt : portuguese
pa : punjabi
ro : romanian
ru : russian
sm : samoan
gd : scots gaelic
sr : serbian
st : sesotho
sn : shona
sd : sindhi
si : sinhala
sk : slovak
sl : slovenian
so : somali
es : spanish
su : sundanese
sw : swahili
sv : swedish
tg : tajik
ta : tamil
te : telugu
th : thai
tr : turkish
uk : ukrainian
ur : urdu
uz : uzbek
vi : vietnamese
cy : welsh
xh : xhosa
yi : yiddish
yo : yoruba
zu : zulu
fil : Filipino
he : Hebrew

About

Second rendition of Lang Bot, slightly cleaner.


Languages

Language:Python 100.0%