Compare commits

...

3 Commits

Author SHA1 Message Date
xfnw 93b6f2978a Merge branch 'main' of github.com:xfnw/min into main 2021-07-26 12:51:21 -04:00
xfnw 11fca28940 pad punctuation 2021-07-26 12:51:02 -04:00
owen d4ad2ff00e
Update README.md 2021-07-17 19:52:11 -04:00
2 changed files with 4 additions and 10 deletions

View File

@ -1,6 +1,2 @@
# min
A bot that uses weighted topic identifiers, and markov to make intresting and amusing conversations.
Based on the the idea of [RealAI](https://github.com/oblivionburn/RealAI), however it does not use any
of RealAI's code, and it completely generates the replies instead of also storing old replies and reusing them.
min is a rather bad chat bot

View File

@ -1,8 +1,6 @@
from bot import *
import dataset
import random
import time
import dataset, random, time, re
async def rec(self, m):
prew = shared.db['prew']
@ -94,7 +92,7 @@ async def filter(self, c, n, m):
async def go(self, c, n, m):
await rec(self, m)
words = m.split(' ')
words = re.sub(r'([\.,\?!])', r' \1', m).split()
if words[0] == 'admin':
return
await self.message(c, ' '.join(await genOut(self, await getNoun(self, words, c))))
@ -110,7 +108,7 @@ async def init(self):
# sentance ending weight, lower means longer sentances,
# higher means shorter sentances. this will need to slowly
# get larger as the database grows
shared.enmul = 7
shared.enmul = 6
shared.rawm['nlp'] = filter