From 2d337313f246d8178354a0e85d3ecc7d6b2151f3 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 6 Feb 2018 16:39:50 -0800 Subject: [PATCH] fix typo --- examples/irc/plugins/dice.py | 2 +- examples/twitch/plugins/dice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/irc/plugins/dice.py b/examples/irc/plugins/dice.py index a79127a..425266b 100644 --- a/examples/irc/plugins/dice.py +++ b/examples/irc/plugins/dice.py @@ -19,7 +19,7 @@ def build_output(rolls, modifier): @pinhook.plugin.register('!roll') def roll(msg): - matches = dicepatern.match(msg.arg) + matches = dicepattern.match(msg.arg) if matches: msg.logger.info('Valid dice roll: {}'.format(msg.arg)) rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))] diff --git a/examples/twitch/plugins/dice.py b/examples/twitch/plugins/dice.py index a79127a..425266b 100644 --- a/examples/twitch/plugins/dice.py +++ b/examples/twitch/plugins/dice.py @@ -19,7 +19,7 @@ def build_output(rolls, modifier): @pinhook.plugin.register('!roll') def roll(msg): - matches = dicepatern.match(msg.arg) + matches = dicepattern.match(msg.arg) if matches: msg.logger.info('Valid dice roll: {}'.format(msg.arg)) rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))]