Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
tweaking chatfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Warren committed Aug 30, 2011
1 parent 1717c04 commit 31893d9
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -2,6 +2,6 @@
.bundle
Gemfile.lock
pkg/*
Chatfile
Chatfile.testing
.DS_Store
ceilingcat.yml
16 changes: 10 additions & 6 deletions examples/Chatfile
Expand Up @@ -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
28 changes: 28 additions & 0 deletions setup/Chatfile
@@ -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
20 changes: 20 additions & 0 deletions spec/fixtures/Chatfile
@@ -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.