Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "cinch"
- class HelloWorld
- include Cinch::Plugin
- match "hello"
- def execute(m)
- m.reply "Hello, World"
- end
- end
- bot = Cinch::Bot.new do
- configure do |c|
- c.server = "irc.freenode.net"
- c.channels = ["#cinch-bots"]
- c.plugins.plugins = [HelloWorld]
- end
- end
- bot.start
Advertisement
Add Comment
Please, Sign In to add comment