Skip to content

Commit

Permalink
added java version to -info
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckscor3 committed May 15, 2016
1 parent d5509b7 commit 6033b25
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Changelog
---
**5.7.1.1**
- Added Java version to -info

####5.7.1
- -longurl now uses the unshorten.it API
- Changed -longurl to -unshorten
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>bl4ckscor3.bot</groupId>
<artifactId>bl4ckb0t</artifactId>
<version>5.7.1</version>
<version>5.7.1.1</version>
<name>bl4ckb0t</name>
<description>An IRC bot designed and managed by bl4ckscor3</description>
<url>https://github.com/bl4ckscor3/bl4ckb0t</url>
Expand Down
2 changes: 1 addition & 1 deletion src/bl4ckscor3/bot/bl4ckb0t/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Core
public static Bot bot;
private static boolean wasStartedAsWIP;
private static final String botName = "bl4ckb0t";
private static final String version = "5.7.1";
private static final String version = "5.7.1.1";
private static ConfigurationFile customConfig;

public static void main(String args[]) throws IOException, IrcException
Expand Down
1 change: 1 addition & 0 deletions src/bl4ckscor3/bot/bl4ckb0t/commands/channel/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void exe(MessageEvent event, String[] args) throws Exception
Colors.BOLD + L10N.getString("info.version", channel).replace("#version", Colors.NORMAL + Core.bot.getConfiguration().getVersion()),
Colors.BOLD + L10N.getString("info.uptime", channel).replace("#uptime", Colors.NORMAL + new TimeParser(getMainAlias()).lts(ManagementFactory.getRuntimeMXBean().getUptime(), "%s:%s:%s:%s")),
Colors.BOLD + L10N.getString("info.buildDate", channel).replace("#time", Colors.NORMAL + new Date(getBuildDate())),
Colors.BOLD + L10N.getString("info.javaVersion", channel).replace("#version", Colors.NORMAL + System.getProperty("java.version")),
Colors.BOLD + L10N.getString("info.author", channel).replace("#author", Colors.NORMAL + "bl4ckscor3"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ help.invalidCmd=ist kein Kommando.
info.version=Version: #version
info.uptime=Laufzeit: #uptime
info.buildDate=Build-Datum: #time
info.javaVersion=Java Version: #version
info.author=Autor: #author
info.explanation=Shows info about the bot like uptime, version, and more.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ help.invalidCmd=is not a valid command.
info.version=Version: #version
info.uptime=Uptime: #uptime
info.buildDate=Build date: #time
info.javaVersion=Java version: #version
info.author=Author: #author
info.explanation=Shows info about the bot like uptime, version, and more.

Expand Down

0 comments on commit 6033b25

Please sign in to comment.