diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 04:43:01 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 04:43:01 -0700 |
commit | 282b36e2690aea415244c81eadf093c41f752194 (patch) | |
tree | 42e0a8988f5a9938ec89bc0cf85851eec26c97af /example.rb | |
parent | e8908d71464ab36937ed4a95e8a32c4b3cb4726c (diff) | |
download | dinobot-282b36e2690aea415244c81eadf093c41f752194.tar.gz dinobot-282b36e2690aea415244c81eadf093c41f752194.tar.xz |
Add example bot script.
Diffstat (limited to 'example.rb')
-rw-r--r-- | example.rb | 13 |
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 |