예제 #1
0
def get_creed(name, lang):
    if name not in creeds:
        raise IndexError(f"Not a valid creed. Valid creeds: {str(creeds)}")

    title = lang[f"{name}_name"]
    description = lang[f"{name}_text"]

    embed = utils.create_embed(title, description, custom_title=True)

    return {"level": "info", "message": embed}
예제 #2
0
def get_catechisms(lang):
    title = lang["catechisms"]
    description = lang["catechisms_text"]

    for catechism in catechisms:
        command_name = catechism
        description += f"`{central.cmd_prefix}{command_name}` - **{catechism_titles[catechism]}**\n"

    embed = utils.create_embed(title, description, custom_title=True)

    return {"level": "info", "message": embed}
예제 #3
0
def get_creeds(lang):
    title = lang["creeds"]
    description = lang["creeds_text"]

    for creed in creeds:
        creed_title = lang[f"{creed}_name"]
        command_name = lang["commands"][creed]

        description += f"`{central.cmd_prefix}{command_name}` - **{creed_title}**\n"

    embed = utils.create_embed(title, description, custom_title=True)

    return {"level": "info", "message": embed}
예제 #4
0
파일: special.py 프로젝트: Jsewill/BibleBot
def get_supporters(lang):
    title = lang["commands"]["supporters"]
    description = "**" + lang["supporters"] + "**\n\n"

    for supporter in supporters:
        description += f"- {supporter}\n"

    description += "- " + lang["anonymousDonors"] + "\n\n" + lang[
        "donorsNotListed"]

    embed = utils.create_embed(title, description)

    return {"level": "info", "message": embed}