remove remsg now that sentence generation is better
This commit is contained in:
parent
ae7b469676
commit
1d915a8e7e
1 changed files with 0 additions and 5 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue