Added onQuit
This commit is contained in:
parent
f35313bf62
commit
40ee593c3b
3 changed files with 11 additions and 4 deletions
|
@ -92,6 +92,7 @@ import org.pircbotx.hooks.events.MessageEvent
|
|||
import org.pircbotx.hooks.events.NickChangeEvent
|
||||
import org.pircbotx.hooks.events.PartEvent
|
||||
import org.pircbotx.hooks.events.PrivateMessageEvent
|
||||
import org.pircbotx.hooks.events.QuitEvent
|
||||
import org.pircbotx.hooks.types.GenericMessageEvent
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
|
@ -253,6 +254,12 @@ class Mobibot(nickname: String, val channel: String, logsDirPath: String, p: Pro
|
|||
}
|
||||
}
|
||||
|
||||
override fun onQuit(event: QuitEvent?) {
|
||||
event?.user?.let { user ->
|
||||
seen.add(user.nick)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@Throws(Exception::class)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue