Skip to content

Commit

Permalink
update 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JHue58 committed Apr 8, 2022
1 parent c091397 commit 81cc28d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ChatClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import threading
import time
import traceback
import platform

import simuse

version = '2.8.0'
version = '2.8.1'


# 控制台指令类
Expand Down
4 changes: 2 additions & 2 deletions ChatFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ def Merge_Filter():
Filterconfiglist = list(set(Filterconfiglist))
except:
print(filename, '合并错误')
else:
print(filename, '合并完成')
FilterConfig = blackcheck()
Filterlist_origin = FilterConfig['filter']
Filterlist_origin.extend(Filterconfiglist)
Expand All @@ -550,5 +552,3 @@ def Merge_Filter():
file = open('Filter.clc', 'w', encoding='utf-8-sig')
file.write(str(FilterConfig))
file.close()
if Filterlist != []:
print('合并完成')
10 changes: 7 additions & 3 deletions ChatReply.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ def DelType(tempdict, answerlist):
try:
questiondict = tempdict[str(answertext)]
except:
new_answerlist.remove(answerdict)
continue
try:
new_answerlist.remove(answerdict)
except:
pass
num += 1
deltype = deltype + i['type'] + ' '
try:
if questiondict['freq'] < freqdict[i['type']]:
new_answerlist.remove(answerdict)
Expand All @@ -40,7 +44,7 @@ def DelType(tempdict, answerlist):
except:
continue
if num != 0:
print('已过滤{}个不符合发送要求的{}'.format(num, deltype))
print('已过滤{}个不符合发送要求的{}'.format(num, ','.join(set(deltype.split()))))
return new_answerlist


Expand Down
3 changes: 2 additions & 1 deletion Chatmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def hello():
ClChange()
config['version'] = '2.7.0'
Cl_version(config['version'])
config=Config_version(config['version'])
config = Config_version(config['version'])
config['version'] = Version()
file = open('config.clc', 'w', encoding='utf-8-sig')
file.write(str(config))
Expand Down Expand Up @@ -1417,6 +1417,7 @@ def commandchoice(command, fromchat=0):
global adminsign
global voicereplysign
command = command.lower()
command = ' '.join(command.split())
commandlist = commandclass(data, command)
if command[:8] == 'learning':
if command == 'learning':
Expand Down

0 comments on commit 81cc28d

Please sign in to comment.