Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatが間違ってたので直してあげたよ! #3713 #3714

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions plugins/hato.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,6 @@ def yoshiyoshi():
return "よしよし"




@action("おみくじ")
def omikuji():
"""
Expand Down
5 changes: 5 additions & 0 deletions plugins/hato_mikuji.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
"""

from enum import Enum, auto

from library.omikuji import OmikujiResult, OmikujiResults, draw

# 以下おみくじの設定


class OmikujiEnum(Enum):
"""
おみくじの結果一覧
"""

DAI_KICHI = auto()
CHU_KICHI = auto()
SHO_KICHI = auto()
Expand All @@ -19,6 +23,7 @@ class OmikujiEnum(Enum):
KYO = auto()
DAI_KYO = auto()


class HatoMikuji:
OMIKUJI_CONFIG = OmikujiResults(
{
Expand Down