Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Error del comando eps!rpsls #53

@latra

Description

@latra

Cuando se ejecuta el comando eps!rpsls sin especificar el parámetro (rock, paper, scisor, ...), el bot genera una excepción a causa de un msg[1].lower(); (cuando msg es de length = 1)

Traceback (most recent call last): File "/bots/hackeps-2020/src/modules/commands/utils.py", line 29, in wrapper value = await func(*args) File "/bots/hackeps-2020/src/modules/commands/rpsls.py", line 34, in apply player_choice = msg[1].lower() IndexError: list index out of range

Es necesario corregirlo para evitar que lance mensajes de error y excepción

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions