Compare commits

..

No commits in common. "d38345c3d946197ffbd77d9932f9d41038e322be" and "2ac269d7f80a6547bcf3610df79518cfb2c9f09b" have entirely different histories.

2 changed files with 2 additions and 20 deletions

View file

@ -90,21 +90,6 @@ async def shut(self, c, n, m):
await self.message(c, "Ok, il be back in 10 minutes")
async def deleteword(self, c, n, m):
starttime = time.time()
deleteme = m.split()
shared.db["conver"].delete(pre=deleteme)
shared.db["prew"].delete(pre=deleteme)
shared.db["conver"].delete(pro=deleteme)
shared.db["prew"].delete(pro=deleteme)
shared.db["noun"].delete(word=deleteme)
shared.db["beg"].delete(word=deleteme)
shared.db["end"].delete(word=deleteme)
await self.message(
c, f"word(s) deleted in {round(time.time()-starttime,2)} seconds"
)
async def schans(self, c, n, m):
self.chandb.delete()
for i in self.channels:
@ -261,7 +246,6 @@ commands = {
"send": send,
"joins": joins,
"shut": shut,
"deleteword": deleteword,
"schans": schans,
"addalias": addalias,
"addcommand": addcommand,

View file

@ -40,7 +40,7 @@ async def rec(self, m):
),
["id"],
)
noch.insert(dict(word=get(words, w)))
noch.insert(dict(word=w))
async def getNoun(self, words, c):
@ -127,8 +127,6 @@ async def genOut(self, noun):
elif coun >= shared.maxiter:
shared.enmul -= 1
print(f"coun {coun} enmul {shared.enmul} maxiter {shared.maxiter}")
return out
@ -174,7 +172,7 @@ async def init(self):
# learning.
shared.learndelay = 1
# sentance ending weight, higher means longer sentances,
# lower means shorter sentances. this will need to slowly
# higher means shorter sentances. this will need to slowly
# get larger as the database grows
shared.enmul = 200
shared.maxiter = 14