vdeville / twitch-bot

Framework/Library to create Twitch bot using PHP and module system. Easily create your own module with your own features
https://mythevalentinus.github.io/twitch-bot-docs/en/
GNU General Public License v3.0
7 stars 0 forks source link

Subhype Month Calculation Issue #8

Closed mahony0 closed 5 years ago

mahony0 commented 5 years ago

Hi,

There's an issue with string replacing on SubHype module.

https://github.com/MyTheValentinus/twitch-bot/blob/c986d96e620f9234b40e3f09f66b38ff8924c177/modules/subhype/Subhype.php#L50

It should be:

$months = str_replace('msg-param-cumulative-months=', '', $months);

I can send PR if you approve this is an issue.

Thanks for your efforts.

vdeville commented 5 years ago

Hello,

Thanks you for your report ! Yeah with pleasure, send a PR i will approve it now !

Thanks !