Change the say with ! to be an exclaim instead of yell

This commit is contained in:
Howard Abrams 2025-05-10 21:59:07 -07:00
parent 951d35356d
commit c72a86f615

View file

@ -82,6 +82,7 @@ class CmdSay(MuxCommand):
Where switches can be any of the following:
- exclaim : To replace 'says' with 'exclaims'
- yell : To replace 'says' with 'yells'
- scream : To replace 'says' with 'screams'
- ask : To replace 'says' with 'asks'
@ -99,7 +100,7 @@ class CmdSay(MuxCommand):
"""
key = "say"
aliases = ["speak", "yell", "scream", "ask", "reply", "respond", "\"", "'"]
aliases = ["speak", "yell", "exclaim", "scream", "ask", "reply", "respond", "\"", "'"]
priority = 0
locks = "cmd:all()"
rhs_split = ("=")
@ -161,8 +162,10 @@ class CmdSay(MuxCommand):
verb = 'respond'
elif 'reply' in self.switches or self.cmdstring == 'reply':
verb = 'reply'
elif 'yell' in self.switches or self.cmdstring == 'yell' or speech.endswith('!'):
elif 'yell' in self.switches or self.cmdstring == 'yell':
verb = 'yell'
elif 'exclaim' in self.switches or self.cmdstring == 'exclaim' or speech.endswith('!'):
verb = 'exclaim'
elif 'ask' in self.switches or self.cmdstring == 'ask' or speech.endswith('?'):
verb = 'ask'
else: