Skip to content

Commit

Permalink
Expanded tests, with a particular emphasis on type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
LevBernstein committed Aug 18, 2024
1 parent feaefc5 commit 408afbb
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 157 deletions.
6 changes: 2 additions & 4 deletions Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,8 @@ async def on_command_error(
ctx: commands.Context, e: commands.errors.CommandError
) -> int:
if isinstance(e, commands.CommandNotFound):
return -1
if isinstance(
e, (commands.UnexpectedQuoteError, commands.ExpectedClosingQuoteError)
):
return 0
if isinstance(e, commands.ArgumentParsingError):
await ctx.send(
embed=misc.bbEmbed(
"Careful with quotation marks!",
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Beardless Bot

### Full Release 2.3.6 ![Coverage badge](./resources/images/coverage.svg) ![Unit tests badge](./resources/images/tests.svg) ![Docstring coverage badge](./resources/images/docstr-coverage.svg) ![flake8 badge](./resources/images/flake8-badge.svg)
### Full Release 2.3.7 ![Coverage badge](./resources/images/coverage.svg) ![Unit tests badge](./resources/images/tests.svg) ![Docstring coverage badge](./resources/images/docstr-coverage.svg) ![flake8 badge](./resources/images/flake8-badge.svg)

A Discord bot supporting gambling (coin flips and blackjack),
a currency system, fun facts, and more.
Expand Down
Loading

0 comments on commit 408afbb

Please sign in to comment.