Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
Update README for changed config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tilpner committed Oct 2, 2015
1 parent d129c27 commit a21e0f1
Showing 1 changed file with 64 additions and 65 deletions.
129 changes: 64 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,71 +47,70 @@ registered, and includes the nick's password. The `irc.yaml` file will look
something like this:

```yaml
- nickname: "playbot-dev"
server: irc.mozilla.org
port: 6667
channels:
- "#rust-playbot"
- "#bots"
keys: [null, "hunter2"]
password: abc123abc
templates:
- &template "
#![allow(dead_code, unused_variables)]

static VERSION: &'static str = \"%(version)s\";

fn show<T: std::fmt::Debug>(e: T) { println!(\"{:?}\", e) }

fn main() {
show({
%(input)s
});
}"
- &no_template ""
default_template: *template
triggers:
- template: *template
channel: "stable"
triggers:
- "playbot:(.*)"
- "rusti:(.*)"
- ">>(.*)"
- "s\\s*>>(.*)"
- "stable\\s*>>(.*)"

- template: *template
channel: "beta"
triggers:
- "b\\s*>>(.*)"
- "beta\\s*>>(.*)"

- template: *template
channel: "nightly"
triggers:
- "n\\s*>>(.*)"
- "nightly\\s*>>(.*)"

- template: *no_template
channel: "stable"
triggers:
- "playbot-mini:(.*)"
- "rusti-mini:(.*)"
- ">(.*)"
- "s\\s*>(.*)"
- "stable\\s*>(.*)"

- template: *no_template
channel: "beta"
triggers:
- "b\\s*>(.*)"
- "beta\\s*>(.*)"

- template: *no_template
channel: "nightly"
triggers:
- "n\\s*>(.*)"
- "nightly\\s*>(.*)"
nickname: "playbot-dev"
server: irc.mozilla.org
port: 6667
channels:
- "#rust"
keys: [null, "hunter2"]
password: abc123abc
templates:
- &template "
#![allow(dead_code, unused_variables)]

static VERSION: &'static str = \"%(version)s\";

fn show<T: std::fmt::Debug>(e: T) { println!(\"{:?}\", e) }

fn main() {
show({
%(input)s
});
}"
- &no_template ""
default_template: *template
triggers:
- template: *template
channel: "stable"
triggers:
#- "playbot:(.*)"
#- "rusti:(.*)"
- ">>(.*)"
- "s\\s*>>(.*)"
- "stable\\s*>>(.*)"

- template: *template
channel: "beta"
triggers:
- "b\\s*>>(.*)"
- "beta\\s*>>(.*)"

- template: *template
channel: "nightly"
triggers:
- "n\\s*>>(.*)"
- "nightly\\s*>>(.*)"

- template: *no_template
channel: "stable"
triggers:
#- "playbot-mini:(.*)"
#- "rusti-mini:(.*)"
- ">(.*)"
- "s\\s*>(.*)"
- "stable\\s*>(.*)"

- template: *no_template
channel: "beta"
triggers:
- "b\\s*>(.*)"
- "beta\\s*>(.*)"

- template: *no_template
channel: "nightly"
triggers:
- "n\\s*>(.*)"
- "nightly\\s*>(.*)"
```
Note that the channel key is `null` for public channels.
Expand Down

0 comments on commit a21e0f1

Please sign in to comment.