Move config sample to a separate file

This commit is contained in:
Thierry Carrez 2017-04-19 15:29:17 +02:00
parent 40d888af24
commit b486192b23
3 changed files with 8 additions and 11 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ build/*
*.egg*
AUTHORS
ChangeLog
config.ini

7
config.ini.sample Normal file
View File

@ -0,0 +1,7 @@
[ircbot]
nick=NICKNAME
pass=PASSWORD
server=irc.freenode.net
port=6667
channels=foo,bar
db=/tmp/db.json

View File

@ -14,17 +14,6 @@
# See the License for the specific language governing permissions and
# 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 configparser
import daemon