def handle_partylist(bot, ievent): """ partylist .. show users on partylist. """ partynicks = partyline.list_nicks() if partynicks: ievent.reply("people on partyline: ", partynicks) else: ievent.reply('no party yet!')
def _dodcc(self, sock, nick, userhost, channel=None): """ send welcome message and loop for dcc commands. """ if not nick or not userhost: return try: # send welcome message .. show list of commands for USER perms cmndslist = cmnds.list('USER') cmndslist.sort() sock.send('Welcome to the GOZERBOT partyline ' + nick + " ;]\n") partylist = partyline.list_nicks() if partylist: sock.send("people on the partyline: %s\n" % ' .. '.join(partylist)) sock.send("control character is ! .. bot broadcast is @\n") except Exception, ex: rlog(10, self.name, 'dcc error: %s' % str(ex)) return
def _dodcc(self, sock, nick, userhost, channel=None): """ send welcome message and loop for dcc commands. """ if not nick or not userhost: return try: # send welcome message .. show list of commands for USER perms cmndslist = cmnds.list('USER') cmndslist.sort() sock.send('Welcome to the GOZERBOT partyline ' + nick + " ;]\n") partylist = partyline.list_nicks() if partylist: sock.send("people on the partyline: %s\n" % ' .. '.join(partylist)) sock.send("control character is ! .. bot broadcast is @\n") except Exception, ex: rlog(10 , self.name, 'dcc error: %s' % str(ex)) return