remove remsg now that sentence generation is better

This commit is contained in:
xfnw 2021-11-11 19:45:41 -05:00
parent ae7b469676
commit 1d915a8e7e

View file

@ -36,8 +36,6 @@ async def getNoun(self, words, c):
else: else:
oldnoun = None oldnoun = None
shared.db['remsg'].insert_ignore(dict(noun=oldnoun,msg=' '.join(words)),['id'])
nouns = shared.db['noun'] nouns = shared.db['noun']
out = {} out = {}
for i in words: for i in words:
@ -57,9 +55,6 @@ async def getNoun(self, words, c):
return noun return noun
async def genOut(self, noun): async def genOut(self, noun):
oldresponses = [i['msg'] for i in shared.db['remsg'].find(noun=noun)]
if len(oldresponses) > 0:
return random.choice(oldresponses).split(' ')
prew = shared.db['prew'] prew = shared.db['prew']
beg = shared.db['beg'] beg = shared.db['beg']
end = shared.db['end'] end = shared.db['end']