Skip to content

TypedSayCommand does not accept the colon character #244

Closed
@p-hennessy

Description

@p-hennessy

Game: Team Fortress 2
Input in chat: !mapdl http://test.com/test.bsp
Code in question:

from commands.typed import TypedSayCommand

@TypedSayCommand('!mapdl')
def on_mapdl(command_info, map_url: str):
    print(map_url)

Error:

Too many arguments:
  !mapdl <map_url:str>

Works fine without the colon character. Not sure if this is just a parse issue or deliberately there? It also looks like it truncates everything after the colon, even if i did a *args: ('http', ':')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions