aboutsummaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
Diffstat (limited to 'example.rb')
-rw-r--r--example.rb13
1 files changed, 13 insertions, 0 deletions
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