Set mode +R on connect

This commit is contained in:
mrhanky
2017-07-31 16:10:24 +02:00
parent 564c41aba0
commit 73bebd503e
2 changed files with 12 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import os
import sys
import json
# noinspection PyPackageRequirements
from dotenv import load_dotenv
from irc3 import IrcBot
@@ -23,7 +24,6 @@ CFG_DEV = {
}
# TODO: regex
# TODO: ddg
def main(cfg_file):
# Load dotenv from file
@@ -42,7 +42,9 @@ def main(cfg_file):
# Start the bot with constructed config
bot = IrcBot.from_config(cfg)
bot.run()
bot.mode(bot.nick, '+R')
if __name__ == '__main__':