Skip to content

Commit

Permalink
Add version query
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Aug 5, 2022
1 parent 257606a commit 996d5ff
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import indi.eiriksgata.rulateday.config.GlobalData;
import indi.eiriksgata.rulateday.service.DiceConfigService;
import indi.eiriksgata.rulateday.utlis.MyBatisUtil;
import java.util.ResourceBundle;

@InstructService
public class ConfigController {
Expand Down Expand Up @@ -71,4 +72,10 @@ public String betaVersionOff(MessageData<?> data) {
}
}

@InstructReflex(value = {".version"}, priority = 3)
public String getProgramVersion(MessageData<?> data) {
ResourceBundle config = ResourceBundle.getBundle("application");
return "\n" + config.getString("version");
}

}

0 comments on commit 996d5ff

Please sign in to comment.