From 282b36e2690aea415244c81eadf093c41f752194 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 14 Apr 2014 04:43:01 -0700 Subject: Add example bot script. --- example.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 example.rb diff --git a/example.rb b/example.rb new file mode 100644 index 0000000..c161af5 --- /dev/null +++ b/example.rb @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +require_relative 'dinobot' + +bot = Dinobot::Bot.new('irc.example.org', 6667, 'dinobot') do + join '#dinobot' + + load_module :echo +end + +loop do + bot.run +end -- cgit v1.2.3-70-g09d2