python-discord / sir-robin

Our event bot, for managing community events.
MIT License
18 stars 14 forks source link

Fix `&blurpify` command errors/mistakes #30

Open thatbirdguythatuknownot opened 2 years ago

thatbirdguythatuknownot commented 2 years ago

~The &blurpify command is erroring out with a KeyError: ast.BoolOp when x and y or z is done.~ #34 merged. ~Also with a KeyError: ast.FloorDiv when x // y is done.~ #31 merged. ~Also fails on star parameters *args and double-star parameters **kwargs.~ #33 merged. ~Also fails with a KeyError: ast.JoinedStr on joined strings, that is, formatted strings.~ #35 merged.

Wrong outputs: ~ast.Slice with constants.~ #36 merged. ~Spaces not being there 1 or more times.~ #37 merged. Spaces not appearing where they should appear. Output of f-strings not following PEP 9001. inf and nan constants.