runabot/Christmas/UI/Embed.py
2023-12-05 23:35:48 +09:00

337 lines
18 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 ChristmasEmbed(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 "이 λͺ…λ Ήμ–΄λŠ” " + str(sec) + "초 뒀에 λ‹€μ‹œ μ‚¬μš©ν•  수 μžˆμ–΄μš”!"
@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 BotInfo(gpuserver: typing.Dict[str, typing.Any], bot, APIlatency) -> 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.1.0\nκ°€λ™μ‹œκ°„: {str(uptime)}\n개발자: RunaLab(tmddn3070,Flag_Fan,Pma,Gunu,i3l3,Non)", inline=False)
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)
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
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)