diff --git a/twitch/client.py b/twitch/client.py index ab3567e..d2c07a9 100644 --- a/twitch/client.py +++ b/twitch/client.py @@ -54,6 +54,7 @@ class TwitchCmdClient(ExecClient): alias=maybe_command, used_prefix=prefix, message=message, + content=message.text, initial_globals={ "author": CustomCmdUser(message.chatter), "channel": CustomCmdUser(message.broadcaster), diff --git a/twitch/component.py b/twitch/component.py index 5685c3c..03ee5cf 100644 --- a/twitch/component.py +++ b/twitch/component.py @@ -60,7 +60,7 @@ class CustomCmdComponent(cmds.Component): # Make sure the command parses (can't guarantee it runs, but at least it can parse) try: await self.cmdclient.run_command( - ExecContext(args=[], content=""), response, dryrun=True + ExecContext(alias="testing", args=[], content=""), response, dryrun=True ) except Exception: # TODO: Nicer errors for pinpointing problem diff --git a/twitch/context.py b/twitch/context.py index f7bbe8b..35e531b 100644 --- a/twitch/context.py +++ b/twitch/context.py @@ -59,7 +59,7 @@ class CustomContext(ExecContext): used_prefix: str, **kwargs, ): - super().__init__(**kwargs) + super().__init__(alias=alias, **kwargs) self.bot = bot self.message = message self.alias = alias