Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'cinch'
- module Cinch::Plugins
- class Greeting
- include Cinch::Plugin
- def greet(m)
- [
- "Oh look it's #{m.user.nick} again. Lovely.",
- "Hello #{m.user.nick}! Welcome to #{m.channel}!",
- "So yeah, that #{m.user.nick} I really can't st- OH HI #{m.user.nick}!",
- "We weren't JUST talking about you, #{m.user.nick}",
- "#{m.user.nick}, where's my money?",
- "Hi #{m.user.nick}!",
- "Get out of here #{m.user.nick}, you don't want any part of this!",
- "Did you guys hear that? Oh it's just wind between #{m.user.nick}'s ears.",
- "#{m.user.nick}!!! Oh how I've missed you!",
- "...and I said 'I DIDN'T BRING THE BONG' XDDD, oh hi #{m.user.nick}"
- ].sample
- end
- listen_to :join, :method => :hello
- listen_to :part, :method => :goodbye
- listen_to :quit, :method => :goodbye
- def hello(m)
- unless m.user.nick == bot.nick
- m.reply greet(m)
- return;
- end
- m.reply Format(:green, "Hello #{m.channel}! Systems online!")
- end
- def goodbye(m)
- m.reply Format(:green, "Goodbye, #{m.user.nick}! I will miss you!") unless m.user == bot
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement