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.
MIT License
1 stars 0 forks source link

Initiative Order Can't Handle Negatives #3

Closed andersthemagi closed 3 years ago

andersthemagi commented 3 years ago

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.
andersthemagi commented 3 years ago

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