Browse Source

Move config sample to a separate file

changes/56/473756/1
Thierry Carrez 4 years ago
parent
commit
b486192b23
  1. 1
      .gitignore
  2. 7
      config.ini.sample
  3. 11
      ptgbot/bot.py

1
.gitignore

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

7
config.ini.sample

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

11
ptgbot/bot.py

@ -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

Loading…
Cancel
Save