6693186d40
This Commit Contained Rebrand Patches
393 lines
21 KiB
Python
393 lines
21 KiB
Python
import wavelink
|
|
import typing
|
|
import psutil
|
|
from typing import Any, Optional
|
|
from discord import Embed, Colour, Embed, Member, Guild
|
|
from discord.types.embed import EmbedType
|
|
from datetime import datetime
|
|
from korcen import korcen
|
|
|
|
start_time = datetime.now()
|
|
|
|
|
|
class RunaEmbed(Embed):
|
|
def __init__(self, *,
|
|
color: int | Colour | None = 0xf4f9ff,
|
|
title: Any | None = None,
|
|
type: EmbedType = "rich",
|
|
url: Any | None = None,
|
|
description: Any | None = None,
|
|
timestamp: datetime | None = None,
|
|
):
|
|
super().__init__(
|
|
color=color,
|
|
title=title,
|
|
type=type,
|
|
url=url,
|
|
description=description,
|
|
timestamp=timestamp,
|
|
)
|
|
|
|
def set_footer(self, *, text: Any | None = "루λ",
|
|
icon_url: Any | None = "https://discord.com/assets/6dbfff5aae6b1de2b83f.svg") -> None:
|
|
super().set_footer(text=text)
|
|
|
|
|
|
class Default_Embed:
|
|
|
|
@staticmethod
|
|
def default_join_embed():
|
|
embed = ChristmasEmbed(title="π ν¬λμ΄λ₯Ό μΆκ°ν΄μ£Όμ
μ κ°μ¬ν΄μ!", description="λ΄μ μ¬μ©νκΈ° μ μ μ΄ μλ²μ κ΄λ¦¬μλΌλ©΄ λ€μμ μ μ°¨λ₯Ό λ°λΌμ£ΌμΈμ!")
|
|
embed.add_field(name="1. μ½κ΄ λμ", value="λ€μμ μ½κ΄μ μ½κ³ ``/μλ² κ°μ
``λͺ
λ Ήμ΄λ₯Ό μ€νν΄μ£ΌμΈμ", inline=False)
|
|
embed.add_field(name="1.1 μ½κ΄",
|
|
value="ν¬λμ΄λ μμ
μ¬μκ³Ό λͺ
λ Ήμ΄ μ μ‘μ μν΄ μ¬μ©μκ° μ΄ μ»€λ§¨λλ₯Ό νμΈν μ μμ΄μ, λν κ·Έλ¦Όμμ±μ μ΄λ€ κ²°κ³Όλ¬Όμ΄ λμ€λ ν¬λμ΄λ μ±
μμ§μ§ μμμ!")
|
|
embed.add_field(name="2. μ€μ ", value="``/μ€μ `` λͺ
λ Ήμ΄λ₯Ό ν΅ν΄ ν¬λμ΄μ μ¬λ¬ κΈ°λ₯μ μ€μ ν μ μμ΄μ!", inline=False)
|
|
embed.add_field(name="3. λμλ§", value="``/λμλ§`` λͺ
λ Ήμ΄λ₯Ό ν΅ν΄ ν¬λμ΄μ λͺ
λ Ήμ΄λ₯Ό νμΈν μ μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_sucess():
|
|
embed = ChristmasEmbed(title="π κ°μ
μ±κ³΅!", description="μλ²κ°μ
μ μ±κ³΅νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄μ ν¬λμ΄λ₯Ό μ¦κ²¨λ³΄μΈμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_failed():
|
|
embed = ChristmasEmbed(title="β κ°μ
μ€ν¨!", description="μλ²κ°μ
μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μμμλ μ€λ₯λ‘ μΈν΄ κ°μ
μ μ€ν¨νμ΄μ! μ΄ νμμ΄ μ§μλλ€λ©΄ μλΉμ€ μλ²μ λ¬Έμν΄μ£ΌμΈμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def already_register():
|
|
embed = ChristmasEmbed(title="β κ°μ
μ€ν¨!", description="μ΄λ―Έ κ°μ
λ μλ²μμ!")
|
|
embed.add_field(name="μλ΄", value="μ΄λ―Έ κ°μ
λ μλ²μμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def cooldown(sec):
|
|
return "μ΄ λͺ
λ Ήμ΄λ " + f"``{round(sec, 2)}``" + "μ΄ λ€μ λ€μ μ¬μ©ν μ μμ΄μ!"
|
|
|
|
@staticmethod
|
|
def leave_sucess():
|
|
embed = ChristmasEmbed(title="π νν΄ μ±κ³΅!", description="μλ²μμ νν΄νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="ν¬λμ΄λ₯Ό μ΄μ©ν΄μ£Όμ
μ κ°μ¬ν΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def help():
|
|
embed = ChristmasEmbed(title="π ν¬λμ΄ λμλ§", description="ν¬λ¦¬μ€λ§μ€λ₯Ό μ¦κ²¨λ³΄μΈμ!")
|
|
embed.add_field(name="``/λμλ§``", value="ν¬λμ΄μ λμλ§μ νμΈν΄μ!", inline=False)
|
|
embed.add_field(name="``/μλ²κ°μ
``", value="μ΄ μλ²μ ν¬λμ΄λ₯Ό κ°μ
ν΄μ!", inline=False)
|
|
embed.add_field(name="``/λ΄μ 보``", value="ν¬λμ΄μ μ 보λ₯Ό νμΈν΄μ!", inline=False)
|
|
embed.add_field(name="**νΈμ§**", value="``/νΈμ§ 보λ΄κΈ° (μ μ )``: μ μ μκ² νΈμ§λ₯Ό 보λ΄μ!\n``/νΈμ§ νμΈ``: λ°μ νΈμ§λ₯Ό νμΈν΄μ!", inline=False)
|
|
embed.add_field(name="**κ·Έλ¦Ό**", value="``/κ·Έλ¦Ό μμ±``: ν¬λμ΄κ° κ·Έλ¦Όμ κ·Έλ €μ€μ!\n``/κ·Έλ¦Ό λΆμ``: κ·Έλ¦Όμ λΆμν΄μ!", inline=False)
|
|
embed.add_field(name="**μμ
**",
|
|
value="``/μμ
μ¬μ``: ν¬λμ΄κ° μμ
μ(LOFI) μ¬μν΄μ!\n``/μμ
μ μ§``: ν¬λμ΄κ° μμ
μ μ μ§ν΄μ!\n``/μμ
μ€μ (μ€μ μ΄λ¦) (κ°)``: μμ
μ€μ μ λ³κ²½ν΄μ!",
|
|
inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def recommend():
|
|
embed = ChristmasEmbed(title="π ν¬λμ΄λ₯Ό μΆμ²ν΄μ£ΌμΈμ!", description="ν¬λμ΄λ₯Ό μΆμ²ν΄μ£ΌμΈμ!")
|
|
embed.add_field(name="μλ΄", value="ν¬λμ΄λ₯Ό μΆμ²ν΄μ£Όμλ©΄ ν¬λμ΄κ° λμ±λ λ°μ ν μ μμ΄μ!\n μλμ μΆμ²λ§ν¬λ₯Ό ν΅ν΄ ν¬λμ΄λ₯Ό μΆμ²νμλ€λ©΄ ``μΆμ²μλ£``λ²νΌμ λλ¬μ£ΌμΈμ",
|
|
inline=False)
|
|
embed.add_field(name="μΆμ² λ§ν¬", value="https://koreanbots.dev/bots/974665354573930507", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def BotInfo(gpuserver: typing.Dict[str, typing.Any], bot) -> Embed:
|
|
current_time = datetime.now()
|
|
uptime = current_time - start_time
|
|
uptime = str(uptime).split(".")[0]
|
|
"""
|
|
gpuserver: [system_memory_usage,cuda_memory_usage,oom_count]
|
|
"""
|
|
embed = Embed(title="**λ΄ μ 보**", description="ν¬λμ΄μ μ 보μμ!")
|
|
embed.add_field(name="**λ΄ κ°μ**",
|
|
value=f"λ΄ ID: {bot.user.id}\nλ΄ λ²μ : 1.3.0\nκ°λμκ°: {str(uptime)}\nκ°λ°μ: RunaLab,PvPConnect",
|
|
inline=True)
|
|
orin = psutil.virtual_memory().used
|
|
orin = orin / 1024 / 1024 / 1024
|
|
if gpuserver == None or gpuserver["status"] == "offline":
|
|
embed.add_field(name="**λ΄ μμ**",
|
|
value=f"GPUμλ²1 λ©λͺ¨λ¦¬ μ¬μ©λ: **μ€λ₯**\nGPUμλ²1 CUDA λ©λͺ¨λ¦¬ μ¬μ©λ: **μ€λ₯**\nGPUμλ²1 λ©λͺ¨λ¦¬ μ€λ₯ νμ: **μ€λ₯**\n νμ¬ μ€λ λ©λͺ¨λ¦¬ μ¬μ©λ:{round(orin)}GB",
|
|
inline=False)
|
|
else:
|
|
mem_usage = gpuserver["system_memory_usage"]
|
|
cuda_memory_usage = gpuserver["cuda_memory_usage"]
|
|
oom_count = gpuserver["oom_count"]
|
|
embed.add_field(name="**λ΄ μμ**",
|
|
value=f"νμ¬ μ€λ λ©λͺ¨λ¦¬ μ¬μ©λ: {round(orin)}GB\n\nGPUμλ²1 λ©λͺ¨λ¦¬ μ¬μ©λ: {mem_usage}GB/128GB\nGPUμλ²1 GPU λ©λͺ¨λ¦¬ μ¬μ©λ: {cuda_memory_usage}GB/80GB\nGPUμλ²1 λ©λͺ¨λ¦¬ μ€λ₯ νμ: {oom_count}",
|
|
inline=False)
|
|
embed.add_field(name="**λ΄ ν΅κ³**",
|
|
value=f"ποΈ **{len(bot.guilds)}**κ°μ μλ²μμ λ΄μ μ¬μ©μ€μ΄μμ!\nπ€ **{len(bot.users)}**λͺ
μ μ μ μ ν¨κ»νλ μ€μ΄μμ!",
|
|
inline=False)
|
|
embed.add_field(name="**λ΄ ν**", value=f"π **λμ€μ½λ κ²μ΄νΈμ¨μ΄ ν**: {round(bot.latency * 1000)}ms")
|
|
# if APIlatency is None:
|
|
# embed.add_field(name="**λ΄ ν**", value=f"π **λμ€μ½λ κ²μ΄νΈμ¨μ΄ ν**: {round(bot.latency * 1000)}ms\nπ **AI κ²μ΄νΈμ¨μ΄ ν**: μ€λ₯", inline=False)
|
|
# else:
|
|
# embed.add_field(name="**λ΄ ν**", value=f"π **λμ€μ½λ κ²μ΄νΈμ¨μ΄ ν**: {round(bot.latency * 1000)}ms\nπ **AI κ²μ΄νΈμ¨μ΄ ν**: {APIlatency}ms", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
|
|
class Mail_Embed:
|
|
|
|
@staticmethod
|
|
def mail_confirm(title: str, description: str, receive_user: Member) -> Embed:
|
|
embed = ChristmasEmbed(title="β οΈ μ μ‘μ νμΈ", description="νΈμ§λ₯Ό μ λ§λ‘ μ μ‘νμκ² μ΅λκΉ?")
|
|
embed.add_field(name="β οΈ μ£Όμμ¬ν β οΈ", value="νΈμ§λ ν λ² μ μ‘νλ©΄ νλ²μ μμ κΈ°ν μ΄νμλ μ·¨μν μ μμ΄μ!\n λ΄μ©μ μ μ½κ³ ``μ μ‘``λ²νΌμ λλ¬μ£ΌμΈμ!",
|
|
inline=False)
|
|
embed.add_field(name="λ°λμ΄", value=f"{receive_user.mention}", inline=False)
|
|
embed.add_field(name="μ λͺ©", value=title, inline=False)
|
|
embed.add_field(name="λ΄μ©", value=description, inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_confirm_edit(title: str, description: str, receive_user: Member) -> Embed:
|
|
embed = ChristmasEmbed(title="β οΈ μμ μ νμΈ", description="νΈμ§λ₯Ό μ λ§λ‘ μμ νμκ² μ΅λκΉ?")
|
|
embed.add_field(name="β οΈ μ£Όμμ¬ν β οΈ", value="μ΄λ²μ νΈμ§λ₯Ό μμ νλ©΄ λ€μλ μμ ν μ μκ² λμ!\n λ΄μ©μ μ μ½κ³ ``μ μ‘``λ²νΌμ λλ¬μ£ΌμΈμ!",
|
|
inline=False)
|
|
embed.add_field(name="λ°λμ΄", value=f"{receive_user.mention}", inline=False)
|
|
embed.add_field(name="μ λͺ©", value=title, inline=False)
|
|
embed.add_field(name="λ΄μ©", value=description, inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_cant_edit():
|
|
embed = ChristmasEmbed(title="β νΈμ§ μμ μ€ν¨!", description="νΈμ§ μμ μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="νΈμ§λ ν λ² μ μ‘νλ©΄ νλ²μ μμ κΈ°ν μ΄νμλ μ·¨μνκ±°λ μμ ν μ μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_sended(receive_user: Member) -> Embed:
|
|
embed = ChristmasEmbed(title="β
μ μ‘μλ£!", description="νΈμ§ μ μ‘μ μλ£νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="λ³΄λΈ νΈμ§λ 2023λ
12μ 25μΌλΆν° μ΄λ κ°λ₯ν΄μ!", inline=False)
|
|
embed.add_field(name="λ°λμ΄", value=f"{receive_user.mention}", inline=False)
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_edit_sended(receive_user: Member) -> Embed:
|
|
embed = ChristmasEmbed(title="β
μμ μλ£!", description="νΈμ§ μμ μ μλ£νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μμ λ νΈμ§λ 2023λ
12μ 25μΌλΆν° μ΄λ κ°λ₯ν΄μ!", inline=False)
|
|
embed.add_field(name="λ°λμ΄", value=f"{receive_user.mention}", inline=False)
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_notfound() -> Embed:
|
|
embed = ChristmasEmbed(title="β νΈμ§ μμ!", description="νΈμ§κ° μμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="λ°μ νΈμ§κ° μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_already_sended() -> Embed:
|
|
embed = ChristmasEmbed(title="β νΈμ§ μ μ‘ μ€ν¨!", description="μ΄λ―Έ νΈμ§λ₯Ό 보λμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄λ―Έ νΈμ§λ₯Ό 보λμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def mail_page(data) -> Embed:
|
|
embed = ChristmasEmbed(title="π¨ νΈμ§", description="νΈμ§λ₯Ό νμΈν΄λ³΄μΈμ!(μμ€λ± λ―Όκ°ν λ΄μ©μ΄ ν¬ν¨λ λ΄μ©μ μλμΌλ‘ μ€ν¬μΌλ¬μ²λ¦¬λμ!)")
|
|
username = data["username"]
|
|
userid = data["userid"]
|
|
title = data["title"]
|
|
description = data["content"]
|
|
if korcen.check(title) == True:
|
|
title = "||" + title + "||"
|
|
if korcen.check(description) == True:
|
|
description = "||" + description + "||"
|
|
embed.add_field(name="보λΈμ΄", value=f"{username}({userid})", inline=False)
|
|
embed.add_field(name="μ λͺ©", value=title, inline=False)
|
|
embed.add_field(name="λ΄μ©", value=description, inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
|
|
class Aiart_Embed:
|
|
|
|
@staticmethod
|
|
def failed_generate() -> Embed:
|
|
embed = ChristmasEmbed(title="β κ·Έλ¦Ό μμ± μ€ν¨!", description="κ·Έλ¦Ό μμ±μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="κ·Έλ¦Ό μμ±μ μ€ν¨νμ΄μ! μ΄ νμμ΄ μ§μλλ€λ©΄ μλΉμ€ μλ²μ λ¬Έμν΄μ£ΌμΈμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def sucess_generate(prompt: str, remove: str) -> Embed:
|
|
embed = ChristmasEmbed(title="β
κ·Έλ¦Ό μμ± μ±κ³΅!", description="κ·Έλ¦Ό μμ±μ μ±κ³΅νμ΄μ!")
|
|
embed.add_field(name="ν둬ν¬νΈ", value=prompt, inline=False)
|
|
embed.add_field(name="μ§μ΄ ν둬ν¬νΈ", value=remove, inline=False)
|
|
embed.set_image(url="attachment://image.png")
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def generating() -> Embed:
|
|
embed = ChristmasEmbed(title="κ·Έλ¦Ό μμ±μ€...", description="κ·Έλ¦Όμ μμ±νλ μ€μ΄μμ!")
|
|
embed.add_field(name="μλ΄", value="κ·Έλ¦Ό μμ±μλ μ΅λ 2λΆμ΄ μμλ μ μμ΄μ!(ν¬λμ΄λ λμ΄ μμ΄μ...)", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def evalate(tags, rating) -> ChristmasEmbed:
|
|
if tags == None:
|
|
embed = ChristmasEmbed(name="**μ€λ₯**", value="κ·Έλ¦Ό λΆμμ μ€ν¨νμ΄μ. λμ€μ λ€μ μλν΄μ£ΌμΈμ", inline=False)
|
|
return embed
|
|
else:
|
|
embed = ChristmasEmbed(title="**κ·Έλ¦Ό λΆμ μλ£**", description="κ·Έλ¦Ό λΆμμ΄ μλ£λμμ΄μ!")
|
|
embed.set_image(url="attachment://image.png")
|
|
embed.add_field(name="**λ±κΈ**", value=f"{rating}", inline=False)
|
|
texts = ""
|
|
for tag, score in tags:
|
|
percentage = score * 100
|
|
texts = texts + f"{tag} : {percentage:.1f}%\n"
|
|
embed.add_field(name="**λΆμλ μμ**", value=f"{texts}", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def gen_nsfw():
|
|
embed = ChristmasEmbed(title="β κ·Έλ¦Ό μμ± μ€ν¨!", description="κ·Έλ¦Ό μμ±μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="NSFW μ±λμ΄ μλκ²½μ° NSFW κ·Έλ¦Όμ μμ±μ ν μ μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
|
|
class Music_Embed:
|
|
|
|
@staticmethod
|
|
def music_notenable():
|
|
embed = ChristmasEmbed(title="β μμ
μ¬μ μ€ν¨!", description="μμ
μ¬μμ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄ μλ²μμλ μμ
μ μ¬μν μ μμ΄μ! \nλ§μ½ μλ²μ κ΄λ¦¬μλΌλ©΄ ``/μ€μ `` λͺ
λ Ήμ΄λ‘ μμ
κΈ°λ₯μ λ€μ νμ±νμ¬ν¬μ μμ΄μ!",
|
|
inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def author_not_voice():
|
|
embed = ChristmasEmbed(title="β μμ
μ¬μ μ€ν¨!", description="μμ
μ¬μμ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μμ
μ μ¬μνλ €λ©΄ μμ±μ±λμ λ€μ΄κ°μΌ ν΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def author_diffrent_voice():
|
|
embed = ChristmasEmbed(title="β μμ
μ¬μ μ€ν¨!", description="μμ
μ¬μμ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄λ―Έ λ€λ₯Έ μ±λμ μ μλμ΄μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def music_play():
|
|
embed = ChristmasEmbed(title="β
μ¬μ μμ!", description="LOFI μ¬μμ μμνμ΄μ!")
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def music_stop():
|
|
embed = ChristmasEmbed(title="β
μ¬μ μ μ§!", description="LOFI μ¬μμ μ μ§νμ΄μ!")
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def changed_christmas():
|
|
embed = ChristmasEmbed(title="β
ν¬λ¦¬μ€λ§μ€ λͺ¨λ λ³κ²½!",
|
|
description="ν¬λ¦¬μ€λ§μ€ λͺ¨λλ₯Ό λ³κ²½νμ΄μ! μ΄ μκ°λΆν° 25μΌ 11μ 59λΆκΉμ§ ν¬λ¦¬μ€λ§μ€ λͺ¨λκ° μ μ©λμ!")
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def music_setting(value: bool, settings: str):
|
|
embed = ChristmasEmbed(title="β
μμ
μ€μ λ³κ²½!", description="μμ
μ€μ μ λ³κ²½νμ΄μ!")
|
|
if settings == "music":
|
|
if value == True:
|
|
embed.add_field(name="μλ΄", value="μ΄μ μ΄ μλ²μμ μμ
μ μ¬μν μ μμ΄μ!", inline=False)
|
|
else:
|
|
embed.add_field(name="μλ΄", value="μ΄μ μ΄ μλ²μμ μμ
μ μ¬μν μ μμ΄μ!", inline=False)
|
|
elif settings == "admin_run":
|
|
if value == False:
|
|
embed.add_field(name="μλ΄", value="μ΄μ μ΄ μλ²μμ κ΄λ¦¬μλ₯Ό μ μΈν μ¬λλ€λ μμ
μ μ¬μν μ μμ΄μ!", inline=False)
|
|
else:
|
|
embed.add_field(name="μλ΄", value="μ΄μ μ΄ μλ²μμ κ΄λ¦¬μλ₯Ό μ μΈν μ¬λμ μμ
μ μ¬μν μ μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
|
|
class Arcade_Embed:
|
|
|
|
@staticmethod
|
|
def register_inital():
|
|
embed = ChristmasEmbed(title="π λμΈμ λ±λ‘!", description="λμΈμ λ±λ‘μ μμν΄μ!")
|
|
embed.add_field(name="μλ΄",
|
|
value="ν¬λμ΄μ λμΈμμ μλ²λ μλ²λ‘ κ²½μνλ©° κ·Έ μμ μ μ λ€μ΄ μλ‘ νλνμ¬ μ΄λ€μ§λ κ²μμ΄μμ!\n1.λμΈμμ λ§€μΌ νμ μ΄λ €μμ΄μ! \n2.λμΈμμ μμ¦λΉ 1λ¬λ‘ ꡬμ±λμμ΄μ!\n3.μμ¦μ 1μ£ΌμΌ κ°κ²©μΌλ‘ μ€λΉ-μΈμ-μ€λΉ-μΈμμΌλ‘ ꡬμ±λμμ΄μ!\n4.μ΄ κ³Όμ μμ μ λλ‘ λ΄μ μ΄μ©ν μΈμμ νλ½λμ§ μμμ!\n5.λμΈμμ κ·μ μ μλ°ν κ²½μ° ν΅λ³΄μμ΄ λμΈμμμ μ μΈλ μ μμ΄μ!",
|
|
inline=False)
|
|
embed.add_field(name="μ½κ΄", value="λ€μμ μ½κ΄μ μ½κ³ λμνλ€λ©΄ `λμ`λ²νΌμ λλ¬μ£ΌμΈμ.", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_sucessfull():
|
|
embed = ChristmasEmbed(title="π λμΈμ λ±λ‘ μ±κ³΅!", description="λμΈμ λ±λ‘μ μ±κ³΅νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄μ μ΄ μλ²μμ λμΈμμ μ¦κ²¨λ³΄μΈμ!", inline=False)
|
|
embed.add_field(name="μλ΄", value="μ΄κΈ°κΈμΌλ‘ ``10000 λλ©μ΄``κ° μ§κΈλμμ΄μ!")
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_already():
|
|
embed = ChristmasEmbed(title="β λμΈμ λ±λ‘ μ€ν¨!", description="λμΈμ λ±λ‘μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μ΄λ―Έ μλ²κ° λμΈμμ λ±λ‘λμ΄μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_failed():
|
|
embed = ChristmasEmbed(title="β λμΈμ λ±λ‘ μ€ν¨!", description="λμΈμ λ±λ‘μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="μμμλ μ€λ₯λ‘ μΈν΄ λμΈμ λ±λ‘μ μ€ν¨νμ΄μ! μ΄ νμμ΄ μ§μλλ€λ©΄ μλΉμ€ μλ²μ λ¬Έμν΄μ£ΌμΈμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def register_cancel():
|
|
embed = ChristmasEmbed(title="β λμΈμ λ±λ‘ μ€ν¨!", description="λμΈμ λ±λ‘μ μ€ν¨νμ΄μ!")
|
|
embed.add_field(name="μλ΄", value="λμΈμ λ±λ‘μ μ·¨μνμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def static_info(guild: Guild, region: str):
|
|
region_dict = {
|
|
"south": "λ¨μͺ½",
|
|
"north": "λΆμͺ½"
|
|
}
|
|
region = region_dict[region]
|
|
embed = ChristmasEmbed(title="π λμΈμ μ 보!", description=f"{guild.name}μλ²μ λμΈμ μ 보μμ!")
|
|
embed.add_field(name="μ§μ", value=f"{region}", inline=False)
|
|
embed.add_field(name="μλμ§μ", value=f"{region}", inline=False)
|
|
|
|
@staticmethod
|
|
def recommend_sucess():
|
|
embed = ChristmasEmbed(title="π μΆμ² μλ£!", description="ν¬λμ΄λ₯Ό μΆμ²ν΄μ£Όμ
μ κ°μ¬ν΄μ!")
|
|
embed.add_field(name="μλ΄", value="ν¬λμ΄λ νλ리μ λ±λ‘λμ΄μμ΄μ! νλ리μμ ν¬λμ΄λ₯Ό μΆμ²ν΄μ£Όμλ©΄ ν¬λμ΄κ° λ λ§μ μ¬λλ€μκ² μλ €μ§μ μμ΄μ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|
|
|
|
@staticmethod
|
|
def recommend_failed():
|
|
embed = ChristmasEmbed(title="β μΆμ² μ€ν¨!", description="ν¬λμ΄λ₯Ό μΆμ²νλμ§ νμΈνλλ° μ€ν¨νμ΄μ")
|
|
embed.add_field(name="μλ΄", value="ν¬λμ΄μ μΆμ²μ νμΈνλλ° μ€ν¨νμ΄μ! μ΄ νμμ΄ μ§μλλ€λ©΄ μλΉμ€ μλ²μ λ¬Έμν΄μ£ΌμΈμ!", inline=False)
|
|
embed.set_footer()
|
|
return embed
|