Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tweaking chatfiles

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

0 notes on commit 31893d9

Please sign in to comment.
Something went wrong with that request. Please try again.