コード例 #1
0
ファイル: udp.py プロジェクト: GuillaumeFromage/my-gozerbot
 def dosay(self, printto, txt):
     if cfg['udpparty'] and partyline.is_on(printto):
         partyline.say_nick(printto, txt)
         return
     bot = fleet.byname(cfg['udpbot'])
     if not bot.jabber and not cfg['nolimiter']:
         time.sleep(3)
     bot.say(printto, txt)
     for i in self.loggers:
         i.log(printto, txt)
コード例 #2
0
ファイル: tcp.py プロジェクト: GuillaumeFromage/my-gozerbot
 def dosay(self, printto, txt):
     if cfg['tcpparty'] and partyline.is_on(printto):
         partyline.say_nick(printto, txt)
         return
     bot = fleet.getmainbot()
     if not bot.jabber and not bot.cfg['nolimiter']:
         time.sleep(3)
     bot.say(printto, txt)
     for i in self.loggers:
         i.log(printto, txt)
コード例 #3
0
ファイル: powernick.py プロジェクト: RetroRodent/my-gozerbot
def handle_powernick(bot, ievent):
    global state
    nick = ievent.nick
    if not partyline.is_on(nick):
        ievent.reply('%s is not joined on the partylist .. make a dcc chat\
 connection to the bot' % nick)
        return
    username = users.getname(ievent.userhost)
    state['nicks'][username] = nick
    state.save()
    ievent.reply('powernick set to %s' % nick)
コード例 #4
0
def handle_powernick(bot, ievent):
    global state
    nick = ievent.nick
    if not partyline.is_on(nick):
        ievent.reply('%s is not joined on the partylist .. make a dcc chat\
 connection to the bot' % nick)
        return
    username = users.getname(ievent.userhost)
    state['nicks'][username] = nick
    state.save()
    ievent.reply('powernick set to %s' % nick)