mirror of
https://github.com/kuhyx/signal-bot.git
synced 2026-07-04 11:43:03 +02:00
feat: make bot react only to commands with "!"
This commit is contained in:
parent
369332debf
commit
5bc6e5014f
2
main.py
2
main.py
@ -158,7 +158,7 @@ async def trigger_command(message_content, recipient):
|
||||
message_value = message_message(message_content)
|
||||
|
||||
try:
|
||||
if message_value is not None:
|
||||
if message_value is not None and message_value[0] == "!":
|
||||
current_time = datetime.now()
|
||||
if last_command_time and current_time - last_command_time < timedelta(seconds=10):
|
||||
if not warning_sent:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user