예제 #1
0
def user_field(language, user_name):
    def eng():
        return 'Cool {}'.format(user_name)

    def ita():
        return 'Grande {}'.format(user_name)

    return language_selector(language, eng, ita=ita)
예제 #2
0
def spam_detected_reply(language):
    def eng():
        return 'Stop spamming.'

    def ita():
        return 'Basta spammare.'

    return language_selector(language, eng, ita=ita)
예제 #3
0
def text_description(language, level):
    def eng():
        return 'You\'ve gain to level {}'.format(level)

    def ita():
        return 'Hai raggiunto il livello {}'.format(level)

    return language_selector(language, eng, ita=ita)
def insufficient_permissions(language):
    def eng():
        return 'You don\'t have the permission to run this command'

    def ita():
        return 'Non hai i permessi per eseguire questo comando'

    return language_selector(language, eng, ita=ita)
예제 #5
0
def command_insufficient_permissions(language):

    def eng(): return 'You don\'t have the permissions to use this command, so why are you asking for the manual?!'
    def ita(): return 'Non hai i permessi per eseguire questo comando, quindi perchè chiedi il manuale?!'

    return language_selector(
        language,
        eng, ita=ita
    )
예제 #6
0
def command_not_found(language):

    def eng(): return 'I can\'t show the manual of this command cause it doesn\'t exist'
    def ita(): return 'Non trovo il manuale perchè questo comando non esiste'

    return language_selector(
        language,
        eng, ita=ita
    )
예제 #7
0
def handled_params(language):

    def eng(): return 'Handled Parameters:'
    def ita(): return 'Parametri Gestiti:'

    return language_selector(
        language,
        eng, ita=ita
    )
예제 #8
0
def beta(language):

    def eng(): return '**This is a BETA command**\nExpect some errors or malfunctions from this command.'
    def ita(): return '**Questo è un comando in BETA**\nAspettati alcuni errori o malfunzionamenti.'

    return language_selector(
        language,
        eng, ita=ita
    )
def command_execution_fail(language):

    def eng(): return 'Error during command execution. Error has ben automatically reported to admins.'
    def ita(): return 'Errore durante l\'esecuzione del comando. L\'errore è stato automaticamente reportato agli admin.'

    return language_selector(
        language,
        eng, ita=ita
    )
def command_not_found(language):

    def eng(): return 'This is not a command. Use help to learn how to use the bot.'
    def ita(): return 'Questo non è un comando. Usa l\'help per imparare ad usare il bot.'

    return language_selector(
        language,
        eng, ita=ita
    )
def parm_not_found_error(language, parameter):

    def eng(): return 'The parmeter {} in this command is not existent.'
    def ita(): return 'L\'argomento {} in questo comando non esistente.'

    return language_selector(
        language,
        eng, ita=ita
    )
예제 #12
0
def handled_args(language):

    def eng(): return 'Handled Arguments:'
    def ita(): return 'Argomenti Gestiti:'

    return language_selector(
        language,
        eng, ita=ita
    )
def arg_void_not_allowed(language):

    def eng(): return 'You cant leave the argument void in this command.'
    def ita(): return 'L\'argomento in questo comando non può essere vuoto.'

    return language_selector(
        language,
        eng, ita=ita
    )
def parse_error(language, argument, suggestion):

    def eng(): return 'The value: "{}" is not valid.\nTry something like "{}".'.format(argument, suggestion)
    def ita(): return 'Il valore: "{}" non è valido.\nProva ad usare "{}".'.format(argument, suggestion)

    return language_selector(
        language,
        eng, ita=ita
    )
def guild_not_pro(language):

    def eng(): return 'This guild has not the right pro status to run this command.'
    def ita(): return 'Questa gilda non ha un pro status sufficiente per eseguire quest comando.'

    return language_selector(
        language,
        eng, ita=ita
    )
def max_hourly_uses_error(language, max_hourly, max_daily):

    def eng(): return 'You have used too much the command, there is a {} hourly use limit and {} daily use limit.'
    def ita(): return 'Hai usato troppo il comando, c\'è un limite di {} utilizzi per ora e {} utilizzi per giorno.'

    out = language_selector(
        language,
        eng, ita=ita
    )

    return out.format(max_hourly, max_daily)
예제 #17
0
def invocation(language, invocation_word):

    invocations = ', '.join(invocation_word)

    def eng(): return '**Alternative Invocations:**\n**{}**'.format(invocations)
    def ita(): return '**Invocazioni Alternative:**\n**{}**'.format(invocations)

    return language_selector(
        language,
        eng, ita=ita
    )
def max_daily_uses_error(language, max_daily):

    def eng():
        return 'You have used the command too much today, this command is limited up to {} per day.'.format(max_daily)

    def ita():
        return 'Hai usato troppe volte il comando oggi, c\'è un limite di {} utilizzi per giorno.'.format(max_daily)

    return language_selector(
        language,
        eng, ita=ita
    )
예제 #19
0
def command_mask(language, prefix, main_command, sub_call):

    main_command = main_command.replace('_', '.')

    def eng():
        out = '**Shortcut command**\nObtained from command {}{}\nIn substitution of **{}{} {}**'.format(
            prefix, main_command,
            prefix, main_command, sub_call
        )
        return out

    def ita():
        out = '**Comando abbreviato**\nOttenuto dal comando {}{}\nIn sostituzione a **{}{} {}**'.format(
            prefix, main_command,
            prefix, main_command, sub_call
        )
        return out

    return language_selector(
        language,
        eng, ita=ita
    )