robut-cron 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +33 -0
- data/lib/robut-cron/version.rb +1 -1
- data/lib/robut-cron.rb +6 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,39 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
+
The 'Chatfile':
|
23
|
+
```
|
24
|
+
# Require your plugins here
|
25
|
+
require 'robut/storage/yaml_store'
|
26
|
+
require 'robut/plugin/help'
|
27
|
+
require 'robut-cron'
|
28
|
+
# Add the plugin classes to the Robut plugin list.
|
29
|
+
# Plugins are handled in the order that they appear in this array.
|
30
|
+
Robut::Plugin.plugins << Robut::Plugin::Help
|
31
|
+
Robut::Plugin.plugins << Robut::Plugin::Cron
|
32
|
+
|
33
|
+
# Configure the robut jabber connection and you're good to go!
|
34
|
+
Robut::Connection.configure do |config|
|
35
|
+
# Note that the jid must end with /bot if you don't want robut to
|
36
|
+
# spam the channel, as described by the last bullet point on this
|
37
|
+
# page: https://www.hipchat.com/help/category/xmpp
|
38
|
+
config.jid = 'xxxxxxxxxx@chat.hipchat.com/bot'
|
39
|
+
config.password = 'xxxxx'
|
40
|
+
config.nick = 'Odd Job'
|
41
|
+
config.room = 'xxxxxxxxxx@conf.hipchat.com'
|
42
|
+
|
43
|
+
# Custom @mention name
|
44
|
+
config.mention_name = 'odd'
|
45
|
+
|
46
|
+
# Some plugins require storage
|
47
|
+
Robut::Storage::YamlStore.file = ".robut"
|
48
|
+
config.store = Robut::Storage::YamlStore
|
49
|
+
|
50
|
+
# Add a logger if you want to debug the connection
|
51
|
+
config.logger = Logger.new(STDOUT)
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
22
55
|
Hmmn. Something like this from inside the chat session.
|
23
56
|
|
24
57
|
"#{at_nick} cron new * * * * * <message> - will send this message on the
|
data/lib/robut-cron/version.rb
CHANGED
data/lib/robut-cron.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robut-cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: robut
|