Markov: trivial change to allow for more advanced randomness later
This commit is contained in:
parent
9745cfc9be
commit
678350fe5d
@ -334,7 +334,8 @@ class Markov(Module):
|
|||||||
|
|
||||||
targets = self._get_chatter_targets()
|
targets = self._get_chatter_targets()
|
||||||
for t in targets:
|
for t in targets:
|
||||||
if random.randint(1, t['chance']) == 1:
|
a = random.randint(1, t['chance'])
|
||||||
|
if a == 1:
|
||||||
self.sendmsg(self.connection, t['target'], self._generate_line(t['target']))
|
self.sendmsg(self.connection, t['target'], self._generate_line(t['target']))
|
||||||
|
|
||||||
def _do_shut_up_checks(self):
|
def _do_shut_up_checks(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user