Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Conversation

@hlxid
Copy link
Member

@hlxid hlxid commented Jun 18, 2019

Fixes #26
Heres my test code:

import org.codeoverflow.chatoverflow.api.plugin.{PluginImpl, PluginManager}

class simpletestPlugin(manager: PluginManager) extends PluginImpl(manager) {
  loopInterval = 1000
  var startTime = 0L

  override def setup(): Unit = {
    startTime = System.currentTimeMillis()
    log("Started successfully!")
  }

  override def loop(): Unit = {
    val delta = System.currentTimeMillis() - startTime
    log(delta.toString)
    Thread.sleep(500) // fake execution time
  }

  override def shutdown(): Unit = {}
}

@sebinside sebinside self-requested a review June 18, 2019 08:57
@sebinside sebinside self-assigned this Jun 18, 2019
@sebinside sebinside removed their request for review June 18, 2019 10:37
@sebinside
Copy link
Member

Works fine. Thank you for your patience and the PR!

@sebinside sebinside merged commit 0bed3ba into codeoverflow-org:master Jun 23, 2019
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.

Fix plugin loop not beeing a real loop

2 participants