Skip to content

Commit

Permalink
Fix usage about help setroles, add example (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranduynam2904 authored Mar 14, 2024
1 parent 4805b6d commit 2e33d6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions game/text_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def generate_help_command_embed(command=None):
example_args_list = [{"dayphase": 60, "nightphase": 30, "alertperiod": 20}]
elif command == "setmode":
example_args_list = [{"mode_id": "2", "on_str": "on"}]
elif command == "setroles":
example_args_list = [{"role_dict": '''[{{"Werewolf": 1, "Seer": 1, "Guard": 1, "Chief": 1, "Witch": 1}}]'''}]
elif command == "setplaytime":
example_args_list = [
{"time_start": "00:00", "time_end": "23:59", "time_zone": ""},
Expand Down
2 changes: 1 addition & 1 deletion json/command_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"en": "Set default player roles for a new game"
},
"exclusive_roles": [],
"required_params": []
"required_params": ["role_dict"]
},
"showmodes": {
"description": {
Expand Down

0 comments on commit 2e33d6e

Please sign in to comment.