char -> char.list

This commit is contained in:
2920233418@qq.com 2020-08-19 14:47:49 +08:00
parent 1c9d137412
commit 53fc668e4a
3 changed files with 2 additions and 3 deletions

3
.gitignore vendored
View file

@ -4,5 +4,4 @@ __pycache__
config.py config.py
.idea .idea
test.py test.py
push.cmd push.cmd
data

View file

@ -276,7 +276,7 @@ class Ans(StdAns):
on_tree_players = on_tree_players + nowdata['all_player'][str(p)]['id'] + '\n' on_tree_players = on_tree_players + nowdata['all_player'][str(p)]['id'] + '\n'
return '救命[CQ:at,qq=3178302597][CQ:at,qq=3430357110]\n' + on_tree_players + '都在🌳上' return '救命[CQ:at,qq=3178302597][CQ:at,qq=3430357110]\n' + on_tree_players + '都在🌳上'
path = './data/pcr/char' path = './data/pcr/char.list'
try: try:
with open(path, 'r+', encoding='utf-8') as f: with open(path, 'r+', encoding='utf-8') as f:
characters = f.readlines() characters = f.readlines()