mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
gotta explicitly split on ' ' since we use \n as a delimiter
This commit is contained in:
parent
bc40ff9d78
commit
ba7b018078
@ -136,7 +136,7 @@ class DbmMarkovDB(object):
|
|||||||
def getFollower(self, channel, first, second):
|
def getFollower(self, channel, first, second):
|
||||||
db = self._getDb(channel)
|
db = self._getDb(channel)
|
||||||
followers = db[self._combine(first, second)]
|
followers = db[self._combine(first, second)]
|
||||||
follower = random.choice(followers.split())
|
follower = random.choice(followers.split(' '))
|
||||||
return (follower, follower == '\n')
|
return (follower, follower == '\n')
|
||||||
|
|
||||||
def firsts(self, channel):
|
def firsts(self, channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user