Last active
December 18, 2015 16:29
-
-
Save gregimba/5811799 to your computer and use it in GitHub Desktop.
Simple cinch transcription.
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
gregimba => what up? | |
gregimba => this is great | |
gregimba => I can't wait to use this |
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
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