Skip to content

Instantly share code, notes, and snippets.

View jzanutto's full-sized avatar

John Zanutto jzanutto

  • Ontario, Canada
  • 21:37 (UTC -04:00)
View GitHub Profile
@jzanutto
jzanutto / cinch-patch.rb
Last active August 29, 2015 14:20
Cinch Patch for Twitch
# patch credit to https://github.com/blutorange
class Cinch::Message
def twitch(string)
string = string.to_s.gsub('<','&lt;').gsub('>','&gt;')
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