Skip to content

Commit

Permalink
Fix a bad
Browse files Browse the repository at this point in the history
  • Loading branch information
Martmists-GH committed Aug 12, 2017
1 parent 5a149d2 commit 5a961d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion asynctwitch/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def __init__(self, bot, comm, desc='', alias=[], admin=False, unprefixed=False,
self.listed = listed
self.unprefixed = unprefixed
self.subcommands = {}
self.bot = bot
bot.commands[comm] = self
for a in self.alias:
bot.commands[a] = self
Expand All @@ -507,7 +508,7 @@ def __call__(self, func):
@asyncio.coroutine
def run(self, message):
""" Does type checking for command arguments """
args = message.content[len(self.cog.bot.prefix):].split(" ")[1:]
args = message.content[len(self.bot.prefix):].split(" ")[1:]

args_name = inspect.getfullargspec(self.func)[0][1:]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
setup(
name='asynctwitch',

version='4.2.0',
version='4.2.1',

description='Asynchonous wrapper for twitch IRC3',
long_description=long_description,
Expand Down

0 comments on commit 5a961d6

Please sign in to comment.