Skip to content

Commit

Permalink
Implement a rock-paper-scissors game variant
Browse files Browse the repository at this point in the history
  • Loading branch information
rexor12 committed Jul 20, 2024
1 parent 5a5f7d2 commit b3dcc93
Show file tree
Hide file tree
Showing 9 changed files with 791 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config.debug.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
}
},

"General": {
"RockPaperScissorsOptions": {
"RockEmojiId": 1263953427692785695,
"RockEmojiName": "pstplane",
"PaperEmojiId": 1263953437654126766,
"PaperEmojiName": "pstship",
"ScissorsEmojiId": 1263953444125802546,
"ScissorsEmojiName": "psttank"
}
},

"Reminders": {
"ReminderProcessingOptions": {
"IsEnabled": true
Expand Down
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@
"MarriageEmbedThumbnailUrl": "https://lh3.googleusercontent.com/d/1WxjyhkUSFMsupnrO36Lp_jQKgF9PVvIg",
"FortuneCookieEmbedThumbnailUrl": "https://lh3.googleusercontent.com/d/1a3refqlc9_K8O0VoGipnsS8FpI_Y89c5"
},
"RockPaperScissorsOptions": {
"RockEmojiId": 1263954019660075041,
"RockEmojiName": "pstplane",
"PaperEmojiId": 1263954026991718460,
"PaperEmojiName": "pstship",
"ScissorsEmojiId": 1263954032821665893,
"ScissorsEmojiName": "psttank"
},
"UserProfileOptions": {
"ReputationTable": [
{
Expand Down
1 change: 1 addition & 0 deletions holobot/extensions/general/options/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .avatar_options import AvatarOptions
from .economic_options import EconomicOptions
from .general_options import GeneralOptions
from .rock_paper_scissors_options import RockPaperScissorsOptions
from .user_profile_options import UserProfileOptions
from .waifu_pics_options import WaifuPicsOptions
15 changes: 15 additions & 0 deletions holobot/extensions/general/options/rock_paper_scissors_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from dataclasses import dataclass
from typing import ClassVar

from holobot.sdk.configs import OptionsDefinition

@dataclass
class RockPaperScissorsOptions(OptionsDefinition):
section_name: ClassVar[str] = "General"

RockEmojiId: int
RockEmojiName: str
PaperEmojiId: int
PaperEmojiName: str
ScissorsEmojiId: int
ScissorsEmojiName: str
1 change: 1 addition & 0 deletions holobot/extensions/general/workflows/fun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .fortune_cookie_workflow import FortuneCookieWorkflow
from .magic_eight_ball_workflow import MagicEightBallWorkflow
from .react_workflow import ReactWorkflow
from .rock_paper_scissors_workflow import RockPaperScissorsWorkflow
from .roll_number_workflow import RollNumberWorkflow
from .summon_user_workflow import SummonUserWorkflow
Loading

0 comments on commit b3dcc93

Please sign in to comment.