コード例 #1
0
ファイル: statistics.py プロジェクト: hatbot-team/hatbot
 def load(self, path):
     with open(path, 'r') as black_file:
         self._blacklist = json.load(black_file)
     self._autosave_counter = 0
コード例 #2
0
ファイル: statistics.py プロジェクト: hatbot-team/hatbot
 def load(self, path):
     with open(path, "r") as stat_file:
         self._stat = json.load(stat_file)
     self._autosave_counter = 0