Releases: Valgorithms/TwitchPHP
2.0.0
1.1.0
Deprecated:
- $options['guild_id'] and $options['channel_id']
- -monolog outputs a warning to use
$options['guild_channel_ids'] = [$guild_id => $channel_id]
instead - -2.0.0 will remove these options completely as a breaking change
Bug fixes
- $twitch->badword filtering now works as intended
- Bot will no longer trigger messages unless it has been called with a command prefix or a @mention for the bot
- $twitch->connection is now public to allow for clients using this library to call $twitch->connect() if ($twitch->sendMessage($data) === false)
- Other miscellanious optimizations
Planned features
- 2.0.0 will also introduce $twitch->channels becoming an associative array consisting of keys as the discord guild_ids and the values being arrays of channels names. This will allow for joining or leaving channels in a single server without joining or leaving leaving them for every server that the bot is relaying messages for.
1.0.4
Nullsafe tweaks; Some doc blocks; Emit on connection closed
1.0.3
Messages sent from Discord to Twitch can be prefixed with the #channel
name (usually the name of the streamer) to designate that their message should be sent to them. If no prefix is provided messages will either be sent to the channel where the last message was sent by anyone in either Twitch or Discord (as seen by the bot), or if no messages have been sent at all, the current(channel) of the channels array.
The owner of the Twitch channel can tell the bot to join another Twitch channel by using the join channel
command where channel is the name of the channel they wish to send the bot to. (NOTE: The command does not require the #
prefix like Discord does)
The owner of the Twitch channel can tell the bot to leave their chat by using the leave
command.
-If used in conjunction with DiscordPHP, the joinChannel(string $channel)
and leaveChannel(string $channel)
functions have been left intentionally exposed so it is possible to tell the bot to join or leave channels from within the scope of the DiscordPHP. The string passed should be the name of the channel (without any prefixes) and it is crucial
for semantics sake that the string not be left blank.
1.0.2
Support for multiple channels
1.0.1
Update run.php
1.0.0
Update README.md