Skip to content

Commit

Permalink
Fix/sub issue (#35)
Browse files Browse the repository at this point in the history
* Update is_subscriber condition to == '0'

* My dumbass forgot how conditions work

* Update CHANGELOG.md
  • Loading branch information
aticie authored Sep 21, 2021
1 parent 8f73d3c commit 910913b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- There are no unreleased changes.

## [1.4.4] - 2021-08-13
### Fixed
- \[SUB\] Notation appearing in messages even though the user is not subbed to channel.

## [1.4.3] - 2021-08-13
### Fixed
- Bot now joins the owner's channel if started from scratch
Expand Down Expand Up @@ -86,8 +90,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Unit tests to some twitch bot methods.
- Changelog

[Unreleased]: https://github.com/aticie/ronnia/compare/v1.4.3...HEAD
[1.4.3]: https://github.com/aticie/ronnia/compare/v1.4.2...1.4.3
[Unreleased]: https://github.com/aticie/ronnia/compare/v1.4.4...HEAD
[1.4.4]: https://github.com/aticie/ronnia/compare/v1.4.3...v1.4.4
[1.4.3]: https://github.com/aticie/ronnia/compare/v1.4.2...v1.4.3
[1.4.2]: https://github.com/aticie/ronnia/compare/v1.4.1...v1.4.2
[1.4.1]: https://github.com/aticie/ronnia/compare/v1.4.0...v1.4.1
[1.4.0]: https://github.com/aticie/ronnia/compare/v1.3.5...v1.4.0
Expand Down
3 changes: 2 additions & 1 deletion src/bots/twitch_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ async def _prepare_irc_message(self, message: Message, beatmap_info: dict, given
extra_prefix = ""
if message.author.is_mod:
extra_prefix += "[MOD] "
elif message.author.is_subscriber:
elif message.author.is_subscriber != '0':
# TODO: Check if this conditional changed in the next releases of tio
extra_prefix += "[SUB] "
elif 'vip' in message.author._badges:
extra_prefix += "[VIP] "
Expand Down

0 comments on commit 910913b

Please sign in to comment.