-
-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
2.0TwitchIO 2.0TwitchIO 2.0Addressed in next releaseThis issue will be closed when the next release is createdThis issue will be closed when the next release is createdConfirmed BugBug has been confirmedBug has been confirmedEXT: commands
Description
Discussed in #449
Originally posted by DennisMinn May 13, 2024
I want to pass multiple arguments enclosed in either ' or ", but on the first argument is properly formatted, while the second argument is cut off. Is there a way to modify how the arguments is parsed?
class Bot(commands.Bot):
def __init__(self):
super().__init__(token='<access token>', prefix='!', initial_channels = ['<initial channel>'])
@commands.command(name='addQA')
async def add_qa(self, context: commands.Context, question: str, answer: str):
print(question, answer)
Input from <initial channel> chatroom
!addQA "this is a question" "this is the answer"
Current Output
this is a question "this
Desired Output
this is a question this is the answer
Metadata
Metadata
Assignees
Labels
2.0TwitchIO 2.0TwitchIO 2.0Addressed in next releaseThis issue will be closed when the next release is createdThis issue will be closed when the next release is createdConfirmed BugBug has been confirmedBug has been confirmedEXT: commands