Skip to content

Run BotScript in separate thread #3

@alejandro5042

Description

@alejandro5042

Use Start-Job? We should isolate ourselves a bit more from the user's script. In addition, this would allow us to parse commands into a queue so that we don't overrun our input buffer. We can process commands as we have time. (Prioritize network access.)

Then we can look into having multiple instances of BotScript running. This is especially important if a bot gets a lot of requests that are long-running or is active in many channels. We could consider providing a simple synchronization primitive like so:

$Bot.Lock 'name' { script }
$Bot.Lock { script }             # use a default name

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions