Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "cinch"
- HOP_REGEX = /^!hop?/i
- FAMINA__REGEX = /\bfamina?\b/i
- ADMIN = "NICK ADMINISTRATORA"
- NICK_BOTA = "NICK BOTA"
- WORD__REGEX = /\bs(l|ł)owo?\b/i
- EUROWIZJA_CAT = /\be(u|l|ł)rowiz(i|j)a?\b/i
- TECHNO_CAT = /^!te(h|ch)no?/i
- TECHNO_CAT_LINK = "https://www.youtube.com/watch?v=v9_2l6gBlCA"
- SAY_REGEX = /\Asay (?<msg>.*)\z/i
- CHANNEL_NAME = "#wykoppl"
- PASSWORD = "HASŁO"
- TABLICA = "kurwy"#["chuje", "kurwy", "dziwki"]
- bot = Cinch::Bot.new do
- configure do |c|
- c.server = "irc.pirc.pl"
- c.port = 6667
- c.channels = [CHANNEL_NAME] #, "#mirkofm"]
- c.nick = NICK_BOTA
- c.password = PASSWORD
- end
- on :join do |m|
- bot.irc.send "MODE " + NICK_BOTA + " +B"
- if m.user.to_s.downcase == NICK_BOTA.downcase
- bot.Channel(CHANNEL_NAME).send("WITAM WSZYSTKIE POLSKIE #{TABLICA.upcase}!")
- end
- end
- on :message, FAMINA__REGEX do |m|
- m.reply "Famina to ciota i chuj."
- end
- on :message, EUROWIZJA_CAT do |m|
- m.reply "https://www.youtube.com/watch?feature=player_embedded&v=Q4YkShSUSiE"
- end
- on :message, TECHNO_CAT do |m|
- m.reply TECHNO_CAT_LINK
- end
- on :message, SAY_REGEX do |m|
- if m.user.to_s.downcase == ADMIN.downcase
- msg = SAY_REGEX.match(m.message)[:msg]
- bot.Channel(CHANNEL_NAME).msg msg
- end
- end
- on :message, HOP_REGEX do |m|
- m.reply "sam se kurna skacz"
- end
- end
- bot.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement