Exemplo n.º 1
0
def c_setboruc(client, message):
    global boruc

    if sh.get_args(message) == "":
        boruc = "Artur Boruc"
    else:
        boruc = sh.get_args(message)
Exemplo n.º 2
0
def c_pazdzioch(client, message):
	if sh.get_args(message) == "":
		who = message.author.display_name
	else:
		who = sh.get_args(message)
	
	if who.lower() in ["billy mays", "himself", "self", "billy", "<@312862727385251842>"]:
		who = message.author.display_name
	
	what = random.choice(["alkoholik", "analfabeta", "arbuz", "baran", "bambocel", "bezczelny człowiek", "burak", "bydlak nie człowiek", "cham bezczelny", "cham ze wsi spod Elbląga", "chuderlak", "ciemniak", "cymbał", "człowiek kiełbasa", "człowiek niedorozwinięty", "darmozjad", "defekt", "donosiciel", "dupa z uszami", "dureń jeden", "dziad", "dziad kalwaryjski", "dzieciorób", "dzikus", "Einstein zasrany", "erosoman", "frajer", "gagatek", "Gigi Amoroso zasrany", "gnida", "gnój", "głupi psychopata", "głowonóg", "grubas przebrzydły bez czci i wiary", "grubas erosomański", "grubasz pieprzony", "grubas pogański", "grubas pornograficzny", "horror erotyczny", "idiota", "ignorant", "judasz zasrany", "ludożerca", "łobuz", "kanibal", "kapucyn jeden", "kretyn", "krwiożerczy grubas", "menda", "menel", "nędzna karykatura", "nienormalny", "niedorozwój", "nikt", "niewyselekcjonowany burak", "odpad atomowy", "oszust", "pajac", "pasożyt", "parobas", "parówa", "pederasta", "pierdzimąka", "pijak", "pierdoła", "pokraka", "przygłup", "plackarz charytatywny, zasrany", "regularne bydle", "regularny debil i złodziej", "sadysta", "snowboardzista zasrany", "sprośna świnia", "szmaciarz", "świniak", "świnia przebrzydła", "świnia pornograficzna", "świnia zakamuflowana", "świnia żarłoczna", "świnia erosomańska", "śmieć", "taran opasły", "tuman", "ukryty erosoman", "wsza ludzka", "wieprz", "wypierdek", "zagrożenie dla kościoła", "zboczek pieprzony", "zbrodniarz", "zdrajca", "zdewociały faszysta", "znachor zasrany", "żarłoczny, pasożytniczy wrzód na dupie społeczeństwa ludu pracującego miast i wsi"])

	yield from client.send_message(message.channel, "%s to %s!" % (who, what))
Exemplo n.º 3
0
def c_kurwa(client, message):
    c = sh.get_command(message).lower()[1:]
    e = sh.get_args(message).split(" ")
    ret = ""
    dot = True

    for t in e:
        changecase = False

        if random.random() < 0.2:
            if dot and t[0].isupper():
                ret += c.title() + " "
                if t.istitle():
                    changecase = True
            else:
                ret += c + " "

        if t.endswith("."):
            dot = True
        else:
            dot = False

        if changecase:
            ret += t.lower() + " "
        else:
            ret += t + " "

    yield from client.send_message(message.channel, sh.mention(message) + ret)
Exemplo n.º 4
0
def c_trp(client, message):
	result = translate(sh.get_args(message), "auto", "pl")
	
	if result[0] is None:
		yield from client.send_message(message.channel, sh.mention(message) + "brak wyników, albo Google się zesrało.")
	else:
		yield from client.send_message(message.channel, sh.mention(message) + "[" + result[1] + " => pl] " + result[0])
Exemplo n.º 5
0
def c_letter_emoji(client, message):
    replacements = [(" ", "   "), ("\(c\)", "©️"), ("\(r\)", "®️"),
                    ("\(tm\)", "™️"), ("cool", "🆒"),
                    ("free", "🆓"), ("new", "🆕"), ("ok", "🆗"), ("sos", "🆘"),
                    ("zzz", "💤"), ("ng", "🆖"), ("cl", "🆑"), ("up!", "🆙"),
                    ("vs", "🆚"), ("id", "🆔"), ("ab", "🆎"), ("<3", "❤"),
                    ("100", "💯"), ("a", "🇦"), ("b", ":b:"), ("c", "🇨"),
                    ("d", "🇩"), ("e", "🇪"), ("f", "🇫"), ("g", "🇬"), ("h", "🇭"),
                    ("i", "🇮"), ("j", "🇯"), ("k", "🇰"), ("l", "🇱"), ("m", "🇲"),
                    ("n", "🇳"), ("o", "🇴"), ("p", "🇵"), ("q", "🇶"), ("r", "🇷"),
                    ("s", "🇸"), ("t", "🇹"), ("u", "🇺"), ("v", "🇻"), ("w", "🇼"),
                    ("x", "🇽"), ("y", "🇾"), ("z", "🇿"), ("0", ":zero:"),
                    ("1", ":one:"), ("2", ":two:"), ("3", ":three:"),
                    ("4", ":four:"), ("5", ":five:"), ("6", ":six:"),
                    ("7", ":seven:"), ("8", ":eight:"), ("9", ":nine:"),
                    ("\+", "➕"), ("-", "➖"), ("!\?", "⁉"), ("!!", "‼"),
                    ("\?", "❓"), ("!", "❗"), ("#", ":hash:"),
                    ("\*", ":asterisk:"), ("\$", "💲")]

    ret = unidecode.unidecode(sh.get_args(message, True))

    for e in replacements:
        ret = re.sub(e[0], " {} ".format(e[1]), ret, flags=re.I)

    yield from client.send_message(message.channel, ret)
Exemplo n.º 6
0
def c_tr(client, message):
	args = parse_args(sh.get_args(message))
	result = translate(args["msg"], args["in_lang"], args["out_lang"])
	
	if result[0] is None:
		yield from client.send_message(message.channel, sh.mention(message) + "brak wyników, albo Google się zesrało.")
	else:
		yield from client.send_message(message.channel, sh.mention(message) + "[" + result[1] + " => " + args["out_lang"] + "] " + result[0])
Exemplo n.º 7
0
def c_calc(client, message):
    """Evaluate some calculation."""
    if len(sh.get_args(message)) == 0:
        yield from client.send_message(message.channel,
                                       "Nothing to calculate.")
        return
    # Account for the silly non-Anglophones and their silly radix point.
    eqn = sh.get_args(message).replace(',', '.')
    try:
        result = eval_equation(eqn)
        result = "{:.10g}".format(result)
    except ZeroDivisionError:
        result = "Division by zero is not supported in this universe."
    except Exception as e:
        result = "{error}: {msg}".format(error=type(e), msg=e)
    yield from client.send_message(message.channel,
                                   sh.mention(message) + result)
Exemplo n.º 8
0
def c_stats(client, message):
	stat_limit = 15 if (str(message.channel).startswith("Direct Message") or message.channel.id in ["319056762814595076", "386148571529084929"]) else 5
	bot_stats = True if "bot" in sh.get_command(message).lower() else None
	
	mmmsmsm = generate_stats(client, message, message.channel, sh.get_args(message), stat_limit, bot_stats)
	#print("Generated successfully")
	#yield from client.send_message(message.channel, "test")
	yield from client.send_message(message.channel, mmmsmsm)
Exemplo n.º 9
0
def c_google_image_face(client, message):
    result = google(sh.get_args(message), "itp:face")

    if not result:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + "brzydal")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 10
0
def c_fullwidth(client, message):
    HALFWIDTH_TO_FULLWIDTH = str.maketrans(
        '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=>?@[]^_`{|}~ ',
        '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!゛#$%&()*+、ー。/:;〈=〉?@[]^_‘{|}~ '
    )

    yield from client.send_message(
        message.channel,
        unidecode.unidecode(sh.get_args(
            message, True)).translate(HALFWIDTH_TO_FULLWIDTH))
Exemplo n.º 11
0
def c_py(client, message):
    """Evaluate a Python expression."""
    if len(sh.get_args(message)) == 0:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "Need an expression to evaluate")
        return

    query = sh.get_args(message)
    uri = BASE_TUMBOLIA_URI + 'py/'
    answer = web.get(uri + web.quote(query))
    if answer:
        #bot.say can potentially lead to 3rd party commands triggering.
        yield from client.send_message(message.channel,
                                       sh.mention(message) + answer)
    else:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + 'Sorry, no result.')
Exemplo n.º 12
0
def c_google_image_gif(client, message):
    result = google(sh.get_args(message), "itp:animated")

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 13
0
def c_youtube(client, message):
    result = yt(sh.get_args(message))

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo jutub się zesrał.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 14
0
def c_dice(client, message):
    """.dice <formula> - Rolls dice using the XdY format, also does basic (+-*/) math."""
    #MATHTIME! Let's prepare the failsafes.
    legal_formula, no_dice = 1, 1
    #parsing time.
    msg = sh.get_args(message)
    formula = msg  #back-up the original message, because you're going to feed it back to the user in the end.
    formula = formula.replace("-", " - ")
    formula = formula.replace("+", " + ")  #add spaces
    formula = formula.replace("/", " / ")  #for all
    formula = formula.replace("*", " * ")  #the characters
    formula = formula.replace("(", " ( ")  #supported
    formula = formula.replace(")", " ) ")
    arr = formula.split(
        " ")  #aaaand, CUT IT APART! (this is why you needed the spaces.)
    full_string = ""  #reset the formula
    for segment in arr:
        #let's look at this formula... piece, by, piece
        if segment != "":
            #the value of this segment is 0
            value = 0
            if re.search("[0-9]*(d|D|k|K)[0-9]+",
                         segment):  #if there's a dice (regex FTW!)
                value = rollDice(segment.lower())  #then roll the dice.
                no_dice = 0  # And let the bot know there's dice in the formula
            elif re.search(
                    "([0-9]|\+|\-|\*|\/|\(|\)| \+| \-| \*| \/| \(| \))",
                    segment
            ):  #are any of the supported math characters in this piece?
                value = segment  #then just make that the value.
            else:
                legal_formula = 0  #non-supported character found...
                break  #ABORT, ABORT, ABORT!
            full_string += value  #add this segment's value to the full string
    #repeat next segment
    #you done? good.
    if legal_formula == 1 and full_string != "":  # did something break? no? good, continue.
        #at this point full string is something like: "4 + 6 + 12 * 4" etc.
        result = str(
            eval(full_string)
        )  # so normally eval is UNSAFE... but since i've dumped regex over the user input i'm pretty confident in the security.
        #print result to chat
        if (no_dice):  #no dice found, warn!
            yield from client.send_message(
                message.channel,
                sh.mention(message) + msg + " = " + result)
        else:  #dice found, just let the users know what's happening
            yield from client.send_message(
                message.channel,
                sh.mention(message) + "wyrzucono " + msg + " (" + full_string +
                "): " + result)
    else:  #print illegal warning.
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "coś tu jest nie teges: " + segment)
Exemplo n.º 15
0
def c_wybierz(client, message):
    msg = sh.get_args(message)
    if "," in msg:
        delimiter = ","
    else:
        delimiter = " "

    yield from client.send_message(
        message.channel,
        sh.mention(message) +
        random.choice(list(filter(None, msg.split(delimiter)))).strip())
Exemplo n.º 16
0
def c_wyjasnij(client, message):
    result = google(sh.get_args(message))

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + result["desc"] + "\n" + result["url"])
Exemplo n.º 17
0
def c_slap(client, message):
	verb = random.choice(['slaps', 'hits', 'smashes', 'beats', 'bashes', 'smacks', 'blasts', 'punches', 'stabs', 'kills', 'decapitates', 'crushes', 'devastates', 'massacres', 'assaults', 'tackles', 'abuses', 'slams', 'slaughters', 'obliderates', 'wipes out', 'pulverizes', 'granulates', 'stuns', 'knocks out', 'strikes', 'bitchslaps', 'scratches', 'pounds', 'bangs', 'whacks', 'rapes', 'eats', 'destroys', 'does nothing to', 'dooms', 'evaporates', 'does something to', 'taunts', 'disrespects', 'disarms', 'mauls', 'dismembers', 'defuses', 'butchers', 'annihilates', 'tortures', 'shatters', 'wrecks', 'toasts', 'dominates', 'suffocates', 'oxidises', 'erases', 'stomps', 'zaps', 'whomps', 'swipes', 'pats', 'nails', 'thumps', '*PAC*'])
	area = random.choice(['around the head', 'viciously', 'repeatedly', 'in the face', 'to death', 'in the balls', 'in the ass', 'savagely', 'brutally', 'infinitely', 'deeply', 'mercilessly', 'randomly', 'homosexually', 'keenly', 'accurately', 'ironically', 'gayly', 'outrageously', 'straight through the heart', 'immediately', 'unavoidably', 'from the inside', 'around a bit', 'from outer space', 'gently', 'silently', 'for real', 'for no apparent reason', 'specifically', 'maybe', 'allegedly', 'once and for all', 'for life', 'stealthly', 'energetically', 'frightfully', 'in the groin', 'in the dignity', 'in the heels', 'in the nostrils', 'in the ears', 'in the eyes', 'in the snout', 'fearfully', 'appallingly', 'vigorously', 'hrabully'])
	size = random.choice(['large', 'huge', 'small', 'tiny', 'enormous', 'massive', 'rusty', 'gay', 'pink', 'sharpened', 'lethal', 'poisoned', 'toxic', 'incredible', 'powerful', 'wonderful', 'priceless', 'explosive', 'rotten', 'smelly', 'puny', 'toy', 'deadly', 'mortal', 'second-rate', 'second-hand', 'otherwise useless', 'magical', 'pneumatic', 'manly', 'sissy', 'iron', 'steel', 'golden', 'filthy', 'semi-automatic', 'invisible', 'infected', 'spongy', 'sharp-pointed', 'undead', 'horrible', 'intimidating', 'murderous', 'intergalactic', 'serious', 'nuclear', 'cosmic', 'mad', 'insane', 'rocket-propelled', 'holy', 'super', 'homosexual', 'imaginary', 'airborne', 'atomic', 'huge', 'lazy', 'stupid', 'communist', 'creepy', 'slimy', 'nazi', 'heavyweight', 'lightweight', 'thin', 'thick'])
	tool = random.choice(['trout', 'fork', 'mouse', 'bear', 'piano', 'cello', 'vacuum', 'mosquito', 'sewing needle', 'nail', 'fingernail', 'opti', 'penis', 'whale', 'cookie', 'straight-arm punch', 'roundhouse kick', 'training shoe', 'dynamite stick', 'Justin Bieber CD', 'fart cloud', 'd***o', 'lightsaber', 'rock', 'stick', 'nigger', 'dinosaur', 'soap', 'foreskin', 'sock', 'underwear', 'herring', 'spider', 'snake', 'ming vase', 'cow', 'jackhammer', 'hammer and sickle', 'razorblade', 'daemon', 'trident', 'gofer', 'alligator', 'bag of piss', 'lobster', 'beer pad', 'toaster', 'printer', 'nailgun', 'banana bomb', 'fetus', 'unicorn statue', 'blood vial', 'electron', 'spell', 'tin of spam', 'behemoth', 'hand grenade', 'hand of God', 'fist of fury', 'erection', 'Pudzian\'s egg kick', 'pimp hand', 'darth fallus', 'dog turd', 'canoe', 'Atari 5200', 'booby trap', 'Gaben', 'fishbot', 'syntax error', 'blue screen of death'])
	
	if sh.get_args(message) == "":
		who = message.author.display_name
	else:
		who = sh.get_args(message)
	
	if who.lower() in ["billy mays", "himself", "self", "billy", "<@312862727385251842>"]:
		who = message.author.display_name
	
	if size[0].lower() in ["a", "e", "i", "o", "u"]:
		witha = "with an";
	else:
		witha = "with a";
	
	action = "*Billy Mays %s %s %s %s %s %s!*" % (verb, who, area, witha, size, tool)
	yield from client.send_message(message.channel, action)
Exemplo n.º 18
0
def c_wolfram(client, message):
    cw = wolframalpha.Client(wolfram_key)
    res = cw.query(sh.get_args(message, True))

    if not hasattr(res, "results"):
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "nie ma takich rzeczy")
    else:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + next(res.results).text)
Exemplo n.º 19
0
def c_remind(client, message_obj):
    """Gives you a reminder in the given amount of time."""
    if not sh.get_args(message_obj):
        #yield from client.send_message(message_obj.channel, sh.mention(message_obj) + "no i?")
        return NOLIMIT
    if len(sh.get_args(message_obj).split(" ")) < 2:
        yield from client.send_message(
            message_obj.channel,
            sh.mention(message_obj) + "ale o czym mam przypomnieć?")
        return NOLIMIT
    duration = 0
    message = filter(
        None,
        re.split('(\d+(?:\.\d+)? ?(?:(?i)' + periods + ')) ?',
                 sh.get_args(message_obj))[1:])
    reminder = ''
    stop = False
    for piece in message:
        grp = re.match('(\d+(?:\.\d+)?) ?(.*) ?', piece)
        if grp and not stop:
            length = float(grp.group(1))
            factor = scaling.get(grp.group(2).lower(), 60)
            duration += length * factor
        else:
            reminder = reminder + piece
            stop = True
    if duration == 0:
        yield from client.send_message(
            message_obj.channel,
            sh.mention(message_obj) + "i może frytki do tego?")
        return

    if duration % 1:
        duration = int(duration) + 1
    else:
        duration = int(duration)
    timezone = get_timezone(None, None, None, message_obj.author.mention,
                            message_obj.channel.id)
    yield from create_reminder(client, message_obj, duration, reminder,
                               timezone)
Exemplo n.º 20
0
def c_wybierz(client, message):
    msg = sh.get_args(message)
    if "," in msg:
        delimiter = ","
    else:
        delimiter = " "

    tmp = list(filter(None, map(str.strip, msg.split(delimiter))))

    if len(tmp) > 0:
        ret = random.choice(tmp)
    else:
        ret = "nie mam nic do wyboru tłumoku"

    yield from client.send_message(message.channel, sh.mention(message) + ret)
Exemplo n.º 21
0
def c_google_image_face(client, message):
    for i in range(retry_count):
        result = google(sh.get_args(message, True), "itp:face")

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + "brzydal")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 22
0
def c_numerki(client, message):
    for i in range(retry_count):
        result = numerki(sh.get_args(message, True))

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak hentajca, złe numerki?")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result)
Exemplo n.º 23
0
def c_youtube(client, message):
    for i in range(retry_count):
        result = yt(sh.get_args(message, True))

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo jutub się zesrał.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 24
0
def c_google_image_gif(client, message):
    for i in range(retry_count):
        result = google(sh.get_args(message, True), "itp:animated")

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result["url"])
Exemplo n.º 25
0
def c_tumblr_r(client, message):
    for i in range(retry_count):
        result = tumblr_random(sh.get_args(message))

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "wszystko tylko nie to")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + result)
Exemplo n.º 26
0
def c_wyjasnij(client, message):
    for i in range(retry_count):
        result = google(sh.get_args(message, True))

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + result["desc"] + "\n" + result["url"])
Exemplo n.º 27
0
def c_nickrand(client, message):
	phrase = sh.replace_all(sh.get_args(message), {u'Ą':'A', u'Ę':'E', u'Ó':'O', u'Ś':'S', u'Ł':'L', u'Ż':'Z', u'Ź':'Z', u'Ć':'C', u'Ń':'N', u'ą':'a', u'ę':'e', u'ó':'o', u'ś':'s', u'ł':'l', u'ż':'z', u'ź':'z', u'ć':'c', u'ń':'n'})
	uniq = ''.join(ch for ch, _ in itertools.groupby(''.join(sorted(re.sub("[^a-z]", "", phrase.lower())))))
	uniqV = ''
	uniqC = ''
	uniqN = '0123456789'

	for letter in uniq:
		if letter in "eyuioa":
			uniqV += letter
		else:
			uniqC += letter

	uniqVS = ''.join(random.sample(uniqV,len(uniqV)))
	uniqCS = ''.join(random.sample(uniqC,len(uniqC)))
	uniqNS = ''.join(random.sample(uniqN,len(uniqN)))

	mask = ''
	for letter in phrase:
		if letter.islower():
			mask += 'a'
		elif letter.isupper():
			mask += 'A'
		else:
			mask += '#'

	ret = ''
	for letter in phrase.lower():
		if uniqV.find(letter) > -1:
			ret += uniqVS[uniqV.find(letter)]
		elif uniqC.find(letter) > -1:
			ret += uniqCS[uniqC.find(letter)]
		elif uniqN.find(letter) > -1:
			ret += uniqNS[uniqN.find(letter)]
		else:
			ret += letter

	ret = list(ret)
	for i in range(0, len(ret)):
		if mask[i].islower():
			ret[i] = ret[i].lower()
		elif mask[i].isupper():
			ret[i] = ret[i].upper()

	yield from client.send_message(message.channel, ''.join(ret))
Exemplo n.º 28
0
def c_wikipedia(client, message):
    for i in range(retry_count):
        result = google(sh.get_args(message, True) + " site:wikipedia.org")

        if not result:
            continue
        else:
            break

    if not result:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Wiki się zesrało.")
    else:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + result["text"] + "\n" + result["desc"] +
            "\n" + result["url"])
Exemplo n.º 29
0
def c_manglep(client, message):
    text = sh.get_args(message)
    langs = [
        'auto', 'fr', 'de', 'es', 'it', 'no', 'he', 'la', 'ja', 'en', 'pl'
    ]
    i = 1

    while i < len(langs):
        text = translate(text, langs[i - 1], langs[i])[0]
        yield from client.send_typing(message.channel)
        i += 1

    if text is None:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + text)
Exemplo n.º 30
0
def c_mangle(client, message):
    args = parse_args(sh.get_args(message))
    text = args["msg"]
    langs = [
        args["in_lang"], 'fr', 'de', 'es', 'it', 'no', 'he', 'la', 'ja',
        args["out_lang"]
    ]
    i = 1

    while i < len(langs):
        text = translate(text, langs[i - 1], langs[i])[0]
        yield from client.send_typing(message.channel)
        i += 1

    if text is None:
        yield from client.send_message(
            message.channel,
            sh.mention(message) + "brak wyników, albo Google się zesrało.")
    else:
        yield from client.send_message(message.channel,
                                       sh.mention(message) + text)