diff --git a/src/main/java/net/thauvin/erik/mobibot/Mobibot.kt b/src/main/java/net/thauvin/erik/mobibot/Mobibot.kt index ea26829..be986bf 100644 --- a/src/main/java/net/thauvin/erik/mobibot/Mobibot.kt +++ b/src/main/java/net/thauvin/erik/mobibot/Mobibot.kt @@ -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 diff --git a/version.properties b/version.properties index 824070f..0880ceb 100644 --- a/version.properties +++ b/version.properties @@ -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