Browse Source

così mi faccio odiare da autistici

encrypt 7 years ago
parent
commit
accfff8654
1 changed files with 6 additions and 2 deletions
  1. 6 2
      tubiabot.rb

+ 6 - 2
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