diff --git a/tubiabot.rb b/tubiabot.rb index c47759d..64907db 100644 --- a/tubiabot.rb +++ b/tubiabot.rb @@ -15,7 +15,9 @@ markov.parse_file './logs.txt' bot = Cinch::Bot.new do configure do |c| - c.server = "irc.ortiche.net" + c.server = "irc.autistici.org" + c.server = 99999 + c.ssl.use = true c.nick = "TubiaBot" c.channels = ["#indivia"] c.plugins.plugins = plugins.map { |p| eval(p.to_s) } @@ -28,7 +30,9 @@ bot.on :message do |m| #logger.write(m.message+"\n") end if m.message.include?(@bot.nick) - m.reply markov.generate_n_sentences 1 + rp = markov.generate_n_sentences 1 + m.reply rp + #system("espeak -v italian \""+rp+"\"") end end