Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix(limits): fixed limits being missing (#73)
Browse files Browse the repository at this point in the history
* fix(limits): fixed limits being missing

* chore(pre-commit): auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
mmattbtw and pre-commit-ci[bot] authored Dec 7, 2021
1 parent 551fdc1 commit 225600c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ ci:
chore(pre-commit): auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autoupdate_commit_msg: |
chore(pre-commit): pre-commit autoupdate
for more information, see https://pre-commit.ci
repos:
Expand Down
8 changes: 8 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ def callback_bits(uuid: UUID, data: dict, failed: Optional[bool] = False) -> Non
print("Blacklisted word found")
return

if config["MIN_BIT_AMOUNT"] > int(bits):
print("Cheered bits is less than the minimum bit amount")
return

if len(text) > config["MAX_MSG_LENGTH"]:
print("Cheered message is longer than the maximum message length")
return

message = re.sub(
r"(?i)(cheer(?:whal)?|doodlecheer|biblethump|corgo|uni|showlove|party|seemsgood|pride|kappa|frankerz|heyguys|dansgame|elegiggle|trihard|kreygasm|4head|swiftrage|notlikethis|vohiyo|pjsalt|mrdestructoid|bday|ripcheer|shamrock|streamlabs|bitboss|muxy)\d*",
"",
Expand Down

0 comments on commit 225600c

Please # to comment.