Skip to content

Commit 704a044

Browse files
scuffed SFX command that's only scuffed because a missingno shows up when you use a judge wtce that doesn't detect an image. Thanks AO!
1 parent 83109a9 commit 704a044

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

server/commands/roleplay.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"ooc_cmd_format_timer",
3939
"ooc_cmd_timer_interval",
4040
"ooc_cmd_ooc_actions",
41+
"ooc_cmd_sfx",
4142
]
4243

4344

@@ -1124,3 +1125,19 @@ def ooc_cmd_ooc_actions(client, arg):
11241125
if client.ooc_actions:
11251126
stat = "now see"
11261127
client.send_ooc(f"You will {stat} actions in OOC.")
1128+
1129+
1130+
def ooc_cmd_sfx(client, arg):
1131+
"""
1132+
Play a sound effect directly without associating it with an emote.
1133+
Usage: /sfx [sound_path]
1134+
"""
1135+
if arg == "":
1136+
raise ArgumentError(
1137+
"sound_path can't be empty. Usage: /sfx [sound_path]"
1138+
)
1139+
client.area.send_command("RT", arg)
1140+
client.area.broadcast_ooc(f"has played '{arg}'.")
1141+
database.log_area(
1142+
"sfx", client, client.area, message=f"has played {arg}"
1143+
)

0 commit comments

Comments
 (0)