Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcommands not working #17

Open
curiTTV opened this issue Jun 22, 2018 · 0 comments
Open

Subcommands not working #17

curiTTV opened this issue Jun 22, 2018 · 0 comments

Comments

@curiTTV
Copy link

curiTTV commented Jun 22, 2018

Subcommands are currently not working

Traceback (most recent call last):
  File "/var/bots/twitch/asynctwitch/bots.py", line 758, in _tcp_echo_client
    yield from self.event_message(messageobj)
  File "/var/bots/twitch/asynctwitch/bots.py", line 1103, in event_message
    yield from self.parse_commands(m)
  File "/var/bots/twitch/asynctwitch/bots.py", line 1127, in parse_commands
    yield from self.commands[w].run(rm)
  File "/var/bots/twitch/asynctwitch/dataclasses.py", line 549, in run
    yield from self.subcommands[subcomm].run(message)
  File "/var/bots/twitch/asynctwitch/dataclasses.py", line 511, in run
    args = message.content[len(self.bot.prefix):].split(" ")[1:]
AttributeError: 'SubCommand' object has no attribute 'bot'

Even with your example it's the same error. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant