Added onVersion.
This commit is contained in:
parent
6b5e8ab1ff
commit
844253f2bc
2 changed files with 13 additions and 4 deletions
|
@ -479,6 +479,14 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the bot's version.
|
||||
*/
|
||||
override fun onVersion(sourceNick: String, sourceLogin: String, sourceHostname: String, target: String) {
|
||||
sendRawLine("NOTICE " + sourceNick + " :\u0001VERSION " + ReleaseInfo.PROJECT + ' ' + ReleaseInfo.VERSION
|
||||
+ "\u0001")
|
||||
}
|
||||
|
||||
companion object {
|
||||
// Maximum number of times the bot will try to reconnect, if disconnected
|
||||
private const val MAX_RECONNECT = 10
|
||||
|
@ -614,7 +622,8 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
|||
setVerbose(true)
|
||||
setAutoNickChange(true)
|
||||
login = p.getProperty("login", name)
|
||||
version = ReleaseInfo.PROJECT + ' ' + ReleaseInfo.VERSION
|
||||
// Set the real name
|
||||
version = ReleaseInfo.PROJECT
|
||||
// setMessageDelay(1000);
|
||||
|
||||
// Set NICKSERV identification
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Tue Dec 08 13:34:40 PST 2020
|
||||
version.buildmeta=411
|
||||
#Thu Mar 11 18:09:42 PST 2021
|
||||
version.buildmeta=428
|
||||
version.major=0
|
||||
version.minor=8
|
||||
version.patch=0
|
||||
version.prerelease=beta
|
||||
version.project=mobibot
|
||||
version.semver=0.8.0-beta+411
|
||||
version.semver=0.8.0-beta+428
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue