Browse files

Update examples to use autorun

  • Loading branch information...
1 parent bb79ceb commit ff474242a466c4bd55b2987b0ddab366fdb79c37 @raggi committed Nov 13, 2009
Showing with 18 additions and 2 deletions.
  1. +0 −2 examples/autorun.bot
  2. +3 −0 examples/cat.bot
  3. +3 −0 examples/dice.bot
  4. +3 −0 examples/evil.bot
  5. +3 −0 examples/fortune.bot
  6. +3 −0 examples/greeter.bot
  7. +3 −0 examples/youtube.bot
View
2 examples/autorun.bot
@@ -11,6 +11,4 @@ class Inspector
end
end
-# We can do inline configuration here...
-config :room, 40
use Inspector.new
View
3 examples/cat.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
class Cat
def client=(client)
Thread.new do
View
3 examples/dice.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
class Dice
attr_accessor :client
def on_message(sender, content, event)
View
3 examples/evil.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
class Evil
attr_accessor :client
View
3 examples/fortune.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
class Fortune
attr_accessor :client
def on_message(sender, content, event)
View
3 examples/greeter.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
class Greeter
attr_accessor :client
View
3 examples/youtube.bot 100644 → 100755
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+require 'talker_bot/autorun'
+
abort "bzzzt, known broken atm"
require 'youtube'

0 comments on commit ff47424

Please sign in to comment.