From accfff8654f7eade0390241c5118a2c79cd47127 Mon Sep 17 00:00:00 2001 From: encrypt Date: Thu, 16 Feb 2017 16:35:05 +0000 Subject: [PATCH] =?UTF-8?q?cos=C3=AC=20mi=20faccio=20odiare=20da=20autisti?= =?UTF-8?q?ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tubiabot.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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