Skip to content

Instantly share code, notes, and snippets.

@gregimba
Last active December 18, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregimba/5811799 to your computer and use it in GitHub Desktop.
Save gregimba/5811799 to your computer and use it in GitHub Desktop.
Simple cinch transcription.
gregimba => what up?
gregimba => this is great
gregimba => I can't wait to use this
require 'cinch'
bot = Cinch::Bot.new do
configure do |c|
c.nick = "gregimba_bot"
c.server = "irc.oftc.net"
c.channels = ["#gregimba"]
end
on :message do |m|
open("logs.txt", "a") do |file|
file.puts "#{m.user.nick} => #{m.message}"
end
end
end
bot.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment