Browse Source

Oper commands added

translation
Rogier Neeleman 10 years ago
parent
commit
b4c0567fbe
  1. 2
      botconfig.py.example
  2. 2
      modules/common.py

2
botconfig.py.example

@ -3,6 +3,8 @@ CHANNEL = "#mywolfgame" @@ -3,6 +3,8 @@ CHANNEL = "#mywolfgame"
HOST = "irc.freenode.net"
PORT = 6667
USERNAME = "" # for authentication, can be left blank if same as NICK
OPERUSER = "OPPER user"
OPERPASS = "OPER password"
NICK = "mywolfbot"
CMD_CHAR = "!"
CHANGING_HOST_QUIT_MESSAGE = "Changing host"

2
modules/common.py

@ -97,6 +97,8 @@ hook = decorators.generate(HOOKS, raw_nick=True, permissions=False) @@ -97,6 +97,8 @@ hook = decorators.generate(HOOKS, raw_nick=True, permissions=False)
def connect_callback(cli):
def prepare_stuff(*args):
cli.send("OPER", botconfig.OPERUSER, botconfig.OPERPASS)
cli.join(botconfig.CHANNEL)
cli.msg("ChanServ", "op "+botconfig.CHANNEL)

Loading…
Cancel
Save