così mi faccio odiare da autistici
This commit is contained in:
parent
accb3c9008
commit
accfff8654
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue