Skip to content

Releases: Valgorithms/TwitchPHP

2.0.0

22 Oct 06:25
Compare
Choose a tag to compare

New Features
Added multi-guild support

*Breaking Changes
$this->channels is now populated nested arrays in $options in the format of $options['channels']['twitch_channel_username']['discord_guild_id'] = 'discord_channel_id';

1.1.0

22 Oct 03:49
Compare
Choose a tag to compare

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

08 Mar 23:15
Compare
Choose a tag to compare
Nullsafe tweaks; Some doc blocks; Emit on connection closed

1.0.3: (Discord) Send Twitch relay messages to designated channel using #cha…

08 Mar 20:09
Compare
Choose a tag to compare

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

08 Mar 16:43
Compare
Choose a tag to compare

Support for multiple channels

1.0.1

08 Mar 01:32
Compare
Choose a tag to compare
Update run.php

1.0.0

07 Mar 08:20
9bb5e75
Compare
Choose a tag to compare
Update README.md