Skip to content

How can I trigger functions in my plugin while ASF is running? #3342

Closed Answered by JustArchi
DerErzengel asked this question in Support (English)

You must be logged in to vote

That depends on how you want to control your plugin during operation.

  • If you want to use commands, see IBotCommand2 usage.
  • If you want to use Steam messages (other than commands), see IBotMessage.
  • If you want to use ASF API (other than commands), see ArchiController.

All mechanisms above are available to review in example plugin which nolddor already linked you above.

There are also other options, e.g.:

  • Running on timer basis, simply initialize timer in your selected place (e.g. OnLoaded() or OnBotInitModules()), it'll run as per your initialization.
  • Other events, see other available plugin interfaces for those, e.g. running on farming finished event or on bot being disconnected.

Replies: 3 comments

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by JustArchi

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants