andersthemagi / Sovereign-of-Chaos

A small-scale bot made in Python, capable of handling several D&D related tasks on Discord. Built using Discord.py and hosted on a Raspberry Pi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initiative Order Can't Handle Negatives

andersthemagi opened this issue · comments

Expected Behavior

The Traveler should be able to handle initiative that goes into the negatives (i.e. -1 and lower)

Current Behavior

The Traveler has trouble parsing negative values.

Possible Solution

Might be an issue with parsing the output

Steps to Reproduce

  1. Execute !init start command
  2. When collecting initiative, type in a negative value for an otherwise valid creature.
  3. The Traveler is unable to handle it.

Fixed w/ regex and removing instances of numbers in the string