Permalink
Browse files

tweaking chatfiles

  • Loading branch information...
1 parent 1717c04 commit 31893d9ee424d8427d25e95808651c37f58c20cd Christopher Warren committed Aug 30, 2011
Showing with 59 additions and 7 deletions.
  1. +1 −1 .gitignore
  2. +10 −6 examples/Chatfile
  3. +28 −0 setup/Chatfile
  4. +20 −0 spec/fixtures/Chatfile
View
@@ -2,6 +2,6 @@
.bundle
Gemfile.lock
pkg/*
-Chatfile
+Chatfile.testing
.DS_Store
ceilingcat.yml
View
@@ -4,21 +4,25 @@ require 'ceiling_cat/plugins/calc'
require 'ceiling_cat/plugins/greeter'
CeilingCat::Setup.configure do |config|
+ # Campfire Settings. Only use one service per chatfile
config.service = 'campfire'
- config.username = 'username'
- config.token = '12345abcde'
+ config.subdomain = 'username'
+ config.token = '12345abcde' # The API token of the account Ceiling Cat will use. Available at https://<subdomain>.campfirenow.com/member/edit
config.room = 'Test Room'
config.ssl = true
+
+ # IRC Settings. Only use one service per chatfile
+ # config.service = 'irc'
+ # config.server = 'irc.freenode.org'
+ # config.nick = 'nickname'
+ # config.password = 'Q7Af6laDKza2SOM'
+ # config.room = '#my_room'
config.plugins = [CeilingCat::Plugin::About,
CeilingCat::Plugin::Greeter,
CeilingCat::Plugin::Calc]
# Some plugins require storage
- # Robut::Storage::YamlStore.file = ".robut"
CeilingCat::Storage::Yaml.file = "ceilingcat.yml"
config.storage = CeilingCat::Storage::Yaml
-
- # Add a logger if you want to debug the connection
- # config.logger = Logger.new(STDOUT)
end
View
@@ -0,0 +1,28 @@
+# Require your plugins here
+require 'ceiling_cat/plugins/about'
+require 'ceiling_cat/plugins/calc'
+require 'ceiling_cat/plugins/greeter'
+
+CeilingCat::Setup.configure do |config|
+ # Campfire Settings. Only use one service per chatfile
+ config.service = 'campfire'
+ config.subdomain = 'username'
+ config.token = '12345abcde' # The API token of the account Ceiling Cat will use. Available at https://<subdomain>.campfirenow.com/member/edit
+ config.room = 'Test Room'
+ config.ssl = true
+
+ # IRC Settings. Only use one service per chatfile
+ # config.service = 'irc'
+ # config.server = 'irc.freenode.org'
+ # config.nick = 'nickname'
+ # config.password = 'Q7Af6laDKza2SOM'
+ # config.room = '#my_room'
+
+ config.plugins = [CeilingCat::Plugin::About,
+ CeilingCat::Plugin::Greeter,
+ CeilingCat::Plugin::Calc]
+
+ # Some plugins require storage
+ CeilingCat::Storage::Yaml.file = "ceilingcat.yml"
+ config.storage = CeilingCat::Storage::Yaml
+end
@@ -0,0 +1,20 @@
+# Require your plugins here
+require 'ceiling_cat/plugins/about'
+
+CeilingCat::Setup.configure do |config|
+ config.service = 'campfire'
+ config.username = 'user'
+ config.token = '1234abcd'
+ config.room = 'Room 1'
+ config.ssl = true
+
+ # Plugns are executed in the order set.
+ # Execution ends once a response is returned by a plugin.
+ #
+ # If any plugins are collecting stats or otherwise not
+ # interacting directly with users but you want to ensure
+ # that they run, list them first.
+ config.plugins = [CeilingCat::Plugin::About]
+
+ config.storage = CeilingCat::Storage::Hash
+end

0 comments on commit 31893d9

Please sign in to comment.