Skip to content

Commit

Permalink
Merge pull request #30 from hmasdev/update-welcome-msg
Browse files Browse the repository at this point in the history
update welcome message formatting in setup.py
  • Loading branch information
hmasdev authored Oct 26, 2024
2 parents e77f863 + 1a38491 commit 7251c6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions langchain_werewolf/game/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ROLE_ANNOUNCE_NODE_NAME_TEMPLATE: str = "role_announcement_{name}" # noqa


WELCOME_TO_GAME_MESSAGE: str = f'* WELCOME TO {PACKAGE_NAME} GAME *'
WELCOME_TO_GAME_MESSAGE: str = f' WELCOME TO {PACKAGE_NAME} GAME '

# GAME_RULE_TEMPLATE is used to explain the game rule.
GAME_RULE_TEMPLATE: str = '''====== Game Rule ======
Expand Down Expand Up @@ -138,11 +138,11 @@ def create_game_preparation_graph(
sender=GAME_MASTER_NAME,
participants=[GAME_MASTER_NAME]+[p.name for p in players],
message='\n'.join([
len(WELCOME_TO_GAME_MESSAGE) * '*',
'*' + len(WELCOME_TO_GAME_MESSAGE[1:-1]) * ' ' + '*',
WELCOME_TO_GAME_MESSAGE,
'*' + len(WELCOME_TO_GAME_MESSAGE[1:-1]) * ' ' + '*',
len(WELCOME_TO_GAME_MESSAGE) * '*',
(len(WELCOME_TO_GAME_MESSAGE) + 2) * '=',
'=' + len(WELCOME_TO_GAME_MESSAGE) * ' ' + '=',
'=' + WELCOME_TO_GAME_MESSAGE + '=',
'=' + len(WELCOME_TO_GAME_MESSAGE) * ' ' + '=',
(len(WELCOME_TO_GAME_MESSAGE) + 2) * '=',
]),
),
)
Expand Down

0 comments on commit 7251c6c

Please sign in to comment.