Change example config to so simpleyaml isn't required

This commit is contained in:
dpedu 2015-06-18 22:22:44 -07:00
parent d3ba0a6336
commit a019ce4107
5 changed files with 48 additions and 35 deletions

16
examples/config.json Normal file
View File

@ -0,0 +1,16 @@
{
"bot":{
"datadir":"./data/",
"rpcbind":"0.0.0.0",
"rpcport":1876
},
"connection":{
"server":"irc.freenode.net",
"ipv6":"off",
"port":6667
},
"modules":[
"PingResponder",
"Services"
]
}

View File

@ -1,11 +0,0 @@
bot:
datadir: ./data/
rpcbind: 0.0.0.0
rpcport: 1876
connection:
server: irc.freenode.net
ipv6: off
port: 6667
modules:
- PingResponder
- Services

View File

@ -0,0 +1,31 @@
{
"user":{
"nick":[
"pyircbot3",
"pyircbot3_",
"pyircbot3__"
],
"password":"nickservpassword",
"username":"pyircbot3",
"hostname":"pyircbot3.domain.com",
"realname":"pyircbot3"
},
"ident":{
"enable":"no",
"to":"nickserv",
"command":"identify %(password)s",
"ghost":"no",
"ghost_to":"nickserv",
"ghost_cmd":"ghost %(nick)s %(password)s"
},
"channels":[
"#xmopx"
],
"privatechannels":{
"to":"chanserv",
"command":"invite %(channel)s",
"list":[
"#aprivatechannel"
]
}
}

View File

@ -1,23 +0,0 @@
user:
nick:
- pyircbot3
- pyircbot3_
- pyircbot3__
password: nickservpassword
username: pyircbot3
hostname: pyircbot3.domain.com
realname: pyircbot3
ident:
enable: no
to: nickserv
command: identify %(password)s
ghost: yes
ghost_to: nickserv
ghost_cmd: ghost %(nick)s %(password)s
channels:
- "#xmopx"
privatechannels:
to: chanserv
command: invite %(channel)s
list:
- "#aprivatechannel"

View File

@ -1,2 +1,2 @@
#!/bin/sh
pyircbot --config config.yml
pyircbot --config config.json