Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Added Sleep function to bots #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexnum
Copy link

@alexnum alexnum commented May 13, 2022

With the add of the new "Sleep" function, the bot can wait some specific time before going to the next message in the sequentialOperations, for that, we've added a new function "sleep" to the pitaya-bot (Currently, there is the "connect", "disconnect" and "reconnect" functions).
The usage is pretty simple, just put a sleep function call like between sequentialOperations, and the bot will wait the time specified (5000ms in the example below) in the "timeout" property.

{
  "type": "function",
  "uri": "sleep",
  "timeout": 5000
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant