Last active
August 29, 2015 14:20
-
-
Save jzanutto/b4bf74156fa3fbc311bb to your computer and use it in GitHub Desktop.
Cinch Patch for Twitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# patch credit to https://github.com/blutorange | |
class Cinch::Message | |
def twitch(string) | |
string = string.to_s.gsub('<','<').gsub('>','>') | |
bot.irc.send ":#{bot.config.user}!#{bot.config.user}@#{bot.config.user}.tmi.twitch.tv PRIVMSG #{channel} :#{string}" | |
end | |
end | |
# source: https://github.com/cinchrb/cinch/issues/151#issuecomment-49511297 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment