MCPcopy Create free account
hub / github.com/geekcomputers/Python / send_repeatedly

Function send_repeatedly

send_message_automation/message_automation.py:17–25  ·  view source on GitHub ↗
(message, repetitions, delay)

Source from the content-addressed store, hash-verified

15
16
17def send_repeatedly(message, repetitions, delay):
18 count = 1
19 try:
20 for _ in range(repetitions):
21 send_message(f"Message {count}: {message}")
22 sleep(delay)
23 count += 1
24 except KeyboardInterrupt:
25 print("\nProgram terminated by user.")
26
27
28if __name__ == "__main__":

Callers 1

Calls 1

send_messageFunction · 0.85

Tested by

no test coverage detected