Skip to content

Subcommands not working #17

@curiTTV

Description

@curiTTV

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions