Menu

#13 Alert Channel Members

open
nobody
5
2009-06-19
2009-06-19
Anonymous
No

Would be nice to have a feature that would page (name highlight) all users in the channel that are not presently in the game.

Users who do not wish to be notified of games should be able to opt-out.

Discussion

  • Nobody/Anonymous

    I have kiwi able to hilight everyone with the following code:

    http://crayboff.pastebin.com/f22eb333a

    ---

    In order to make an opt-out modify the code to:

    http://crayboff.pastebin.com/f2ecb589d

    keep in mind, i have no clue how that will work out. It's just a suggestion. I tried change things to make it workable in the mafia plugin. You'll have to look through it all before trying it out.

    if you really want me to, i'll add an opt-out function to kiwi, and you can use the mass.hilight function there whenever he's on.

     
  • Nobody/Anonymous

    a change to my previous comment:

    do not put:
    self.userlist = [] in def irc_RPL_NAMREPLY(self, prefix, params):

    place it under:
    def joined(self, channel):

    or whatever pygbot uses

     
  • Crayboff

    Crayboff - 2009-06-22

    Alright, assuming the previous code i have below is correct with mafia.py's modifications, then this should work:

    http://crayboff.pastebin.com/f4da98f03

     
  • Crayboff

    Crayboff - 2009-06-23

    augh dammit, made some dumb mistakes with the code:

    you will definitely have to fix stuff up so it will work with siobhan

    http://crayboff.pastebin.com/f5d4d1d33

     

Log in to post a comment.