# Pastebin rIg8vSiq require "framework/bot" require "framework/plugin" class HelloWorld include Framework::Plugin match /hi/ def execute msg, match msg.reply "Hi #{msg.sender.nick}!" end end class Say include Framework::Plugin match /^!say (.+)/ def execute msg, match msg.reply "#{match}!" end end bot = Framework::Bot.create do config.server = "irc.radiux.io" config.nick = "CrystalBot" config.channels = ["#lounge"] add_plugin HelloWorld add_plugin Say end bot.start