File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323from library .clientclass import BaseClient
2424from library .jma_amesh import jma_amesh
2525logger = getLogger (__name__ )
26- VERSION = "2.2.1"
2726
2827
2928def split_command (command : str , maxsplit : int = 0 ) -> List [str ]:
@@ -251,7 +250,7 @@ def version(client: BaseClient):
251250 user = client .get_send_user_name ()
252251 logger .debug ("%s called 'hato version'" , user )
253252 str_ver = "バージョン情報\n ```" \
254- f"Version { VERSION } "
253+ f"Version { conf . VERSION } "
255254
256255 if conf .GIT_COMMIT_HASH :
257256 str_ver += f" (Commit { conf .GIT_COMMIT_HASH [:7 ]} )"
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def status():
136136 """
137137 死活監視のためのレスポンスをJSON形式で返します
138138 """
139- return jsonify ({'message' : 'hato-bot is running' }), 200
139+ return jsonify ({'message' : 'hato-bot is running' , 'version' : conf . VERSION }), 200
140140
141141
142142def main ():
Original file line number Diff line number Diff line change 3535PLUGINS = ['plugins' ]
3636
3737GIT_COMMIT_HASH = os .environ .get ('GIT_COMMIT_HASH' )
38+
39+ VERSION = "2.2.2"
You can’t perform that action at this time.
0 commit comments