Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update examples to use autorun

  • Loading branch information...
commit ff474242a466c4bd55b2987b0ddab366fdb79c37 1 parent bb79ceb
@raggi authored
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.
Something went wrong with that request. Please try again.