aboutsummaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 04:43:01 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 04:43:01 -0700
commit282b36e2690aea415244c81eadf093c41f752194 (patch)
tree42e0a8988f5a9938ec89bc0cf85851eec26c97af /example.rb
parente8908d71464ab36937ed4a95e8a32c4b3cb4726c (diff)
downloaddinobot-282b36e2690aea415244c81eadf093c41f752194.tar.gz
dinobot-282b36e2690aea415244c81eadf093c41f752194.tar.xz
Add example bot script.
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