Move config sample to a separate file
This commit is contained in:
parent
40d888af24
commit
b486192b23
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ build/*
|
|||||||
*.egg*
|
*.egg*
|
||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
config.ini
|
||||||
|
7
config.ini.sample
Normal file
7
config.ini.sample
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[ircbot]
|
||||||
|
nick=NICKNAME
|
||||||
|
pass=PASSWORD
|
||||||
|
server=irc.freenode.net
|
||||||
|
port=6667
|
||||||
|
channels=foo,bar
|
||||||
|
db=/tmp/db.json
|
@ -14,17 +14,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# The configuration file should look like:
|
|
||||||
"""
|
|
||||||
[ircbot]
|
|
||||||
nick=NICKNAME
|
|
||||||
pass=PASSWORD
|
|
||||||
server=irc.freenode.net
|
|
||||||
port=6667
|
|
||||||
channels=foo,bar
|
|
||||||
db=/tmp/db.json
|
|
||||||
"""
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
import daemon
|
import daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user