Exemplo n.º 1
0
async def log_edit(type_: str, name: str, author: str, url: str):
    embed = Embed(title=f"Edited {type_}: {name}",
                  color=Colour.blue(),
                  timestamp=datetime.utcnow(),
                  url=url)
    embed.set_author(name=author)
    await log_to_webhook(embed=embed)
Exemplo n.º 2
0
class InfoEmbedFormatter(EmbedFormatter):
    """
    Generic informational embed, for instance shown on successful completion
    of some operation.
    """

    icon = "ℹ️"
    colour = Colour.blue()
Exemplo n.º 3
0
class EventColors(Enum):
    ban = Colour.dark_red()
    unban = Colour.teal()
    kick = Colour.red()
    join = Colour.dark_green()
    leave = Colour.blue()
    delete = Colour.magenta()
    bulk_delete = Colour.dark_magenta()
    edit = Colour.gold()
    name_change = Colour.purple()
    nickname_change = Colour.blurple()
    role_added = Colour.dark_teal()
    role_removed = Colour.orange()
    verified = Colour.light_grey()
Exemplo n.º 4
0
 def __init__(self, title=None, content="", show_doc=True) -> None:
     super().__init__(colour=Colour.blue(),
                      title=title,
                      description=content,
                      show_doc=show_doc)
     self.set_footer(text=Messages.CONTRIBUTION_MESSAGE_FOOTER)
Exemplo n.º 5
0
    active = 0
    won = 1
    draw = 2
    forfeit = 3
    timeout = 4


class MsgLevel(Enum):
    info = 0
    warning = 1
    error = 2


MSG_ICON = [Emoji.info, Emoji.warning, Emoji.error]

MSG_COLOR = [Colour.blue(), Colour.orange(), Colour.red()]

AWBW_ROLES = {
    "os": 424524133670453250,  # Orange Star Commander
    "bm": 424524139999789058,  # Blue Moon Commander
    "ge": 424524144353476629,  # Green Earth Commander
    "yc": 424524148958560266,  # Yellow Comet Commander
    "bh": 424524153387876353,  # Black Hole Commander
    "rf": 424541540740890624,  # Red Fire Commander
    "gs": 424541543810990089,  # Grey Sky Commander
    "bd": 424541547757961216,  # Brown Desert Commander
    "ab": 424541550853488640,  # Amber Blaze Commander
    "js": 424541553898291200,  # Jade Sun Commander
    "ci": 424541559766122518,  # Cobalt Ice Commander
    "pc": 424541563520024576,  # Pink Cosmos Commander
    "tg": 424541566934319104,  # Teal Galaxy Commander