diff --git a/.gitignore b/.gitignore index 0d71076..20851cc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build/* *.egg* AUTHORS ChangeLog +config.ini diff --git a/config.ini.sample b/config.ini.sample new file mode 100644 index 0000000..ab10d4b --- /dev/null +++ b/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 diff --git a/ptgbot/bot.py b/ptgbot/bot.py index 9eff4ee..860ab73 100644 --- a/ptgbot/bot.py +++ b/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