Guest User

Untitled

a guest
Jul 24th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1. require "cinch"
  2.  
  3. class HelloWorld
  4.   include Cinch::Plugin
  5.  
  6.   match "hello"
  7.   def execute(m)
  8.     m.reply "Hello, World"
  9.   end
  10. end
  11.  
  12. bot = Cinch::Bot.new do
  13.   configure do |c|
  14.     c.server = "irc.freenode.net"
  15.     c.channels = ["#cinch-bots"]
  16.     c.plugins.plugins = [HelloWorld]
  17.   end
  18. end
  19.  
  20. bot.start
Advertisement
Add Comment
Please, Sign In to add comment