ref: e9c239a3e0c40963003327907c55a03c3ba040d5
dir: /Test_cinch.rb/
require 'cinch' hash = { :invalid => :replace, :undef => :replace} string = hash.to_s puts string bot = Cinch::Bot.new do configure do |c| c.server = 'irc.ircnow.org' c.channels = ['#fpc'] c.nick = 'moz0' end on :connect do # This block will be executed when the bot connects to the IRC server # You can put your async message sending logic here a = 'a' Channel('#channel').send(a.to_s) # Replace '#channel' with the actual channel name bot.quit # Quit the bot after sending the message end end bot.start