zarqon
Well-known member
I've recently discovered the faxbot() ASH command, which actually accepts a monster as a parameter -- it's fabulous! We don't need to keep a list anymore of what the actual name is vs. the name we're supposed to send to Faxbot (or the others, now).
I'm in the middle of writing a relay factoid manager, and find myself wishing I could test the faxability of the various monsters for which factoids are yet lacking -- to provide a quick link to fax the monster should you so desire. However, calling faxbot() on each monster would be a horrible way to do this, because although it would return false for unavailable monsters (desired), it would actually request one fax per possible monster (undesired). Likewise, keeping a manual list of available monsters seems silly now that the list is a) flexible, and b) mafia is already building this list for faxbot().
I could see this being implemented either as a new ASH command or as an additional parameter in faxbot(). The new command could be named something like is_faxbottable( monster ) -- which in addition to having an awesome name is quite straightforward. I suppose a less comical name like can_faxbot() would also work. Or, an optional boolean flag for faxbot a la faxbot( monster m, [ boolean justcheckdontactuallyfax ] ). In either case, the function would simply return true if one of the online faxbots claimed to have the monster available.
tl;dr: It would be nice to use mafia's faxbot savvy to see if a monster could be faxed without actually faxing it.
I'm in the middle of writing a relay factoid manager, and find myself wishing I could test the faxability of the various monsters for which factoids are yet lacking -- to provide a quick link to fax the monster should you so desire. However, calling faxbot() on each monster would be a horrible way to do this, because although it would return false for unavailable monsters (desired), it would actually request one fax per possible monster (undesired). Likewise, keeping a manual list of available monsters seems silly now that the list is a) flexible, and b) mafia is already building this list for faxbot().
I could see this being implemented either as a new ASH command or as an additional parameter in faxbot(). The new command could be named something like is_faxbottable( monster ) -- which in addition to having an awesome name is quite straightforward. I suppose a less comical name like can_faxbot() would also work. Or, an optional boolean flag for faxbot a la faxbot( monster m, [ boolean justcheckdontactuallyfax ] ). In either case, the function would simply return true if one of the online faxbots claimed to have the monster available.
tl;dr: It would be nice to use mafia's faxbot savvy to see if a monster could be faxed without actually faxing it.