Skip to content

Sending "numbers" #7

Open
Open
@draco2007

Description

@draco2007

If I send a message which only includes a number, for example "Notify(Game.time)" the python script crashes here:

https://github.com/screepers/screeps_notify/blob/master/screeps_notify/services/messengers/slack.py#L20

because the function requires a string, but recieves a number.
A possible fix would be "str(notification)", which works for strings and numbers. I don't know if the other modules are also affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions