Skip to content

Commit

Permalink
Random: shyness support
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jun 23, 2023
1 parent f5a5a5f commit 5f4002b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/Random.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from modules.module import Module, Response
from utilities.serviceutils import ServiceMessage

from utilities.utilities import Utilities
from utilities.utilities import Utilities, is_shy

utils = Utilities.get_instance()

Expand All @@ -14,6 +14,8 @@ def process_message(self, message: ServiceMessage) -> Response:
text = atme or message.clean_content
who = message.author.display_name

if not atme and is_shy():
return Response()
# dice rolling
if re.search("^roll [0-9]+d[0-9]+$", text):
result = None
Expand Down

0 comments on commit 5f4002b

Please sign in to comment.