Help on module RBcommand: NAME RBcommand FILE ~\rbcommand.py DESCRIPTION RBcommand.py (C)2008 Don A. Hanlen I make no claims, and take no reponsibility, for use or abuse of this code! I require those who DO use it to cite its source! If this code is used for commercial purposes I expect a (negotiable) cut! This file interprets and executes commands for rePYbot(c). auxilliary files: SavedGames.py RepList.py RBhelp CLASSES RBcommand class RBcommand | parse and execute botName commands (saved games, reputation, help) | | Methods defined here: | | __init__(self, repFile, botName, ftell, fwhois, fquery) | repFile is name (no extension) of reputation file | ftell fwhois fquery << RBhandler's tell whois query | ftell(str:name, str:message) | fwhois returns [str:nAME, str:ratings, str:experience] | [name, "No information found on user "] | fquery returns int:time | "no TimeBot" | | command(self, ts) | if ts[] is a command, execute it | else output appropriate error using passed in function | | doCommand(self, ts) | [name, command, name] | | gotCommand3(self, ts) | 3 word commands | tell self.botName ['name1', 'command', 'name2'] | tell self.botName ['name1', 'help', 'topic'] | | hackTimer(self, user) | check for attempts at repeated abuse of the bot | | isCommand(self, c) | identify 'command' possibly shortened to 1 letter | Note: so far, all commands start with different letters! | | noTitForTat(self, xs) | ['user1', 'user2'] | return False if vouch/complaint/savedGame, else True | (convoluted, I know, but loved the name) | | updateSavedGames(self) | return self.SG.getsavedDict FUNCTIONS log(...) log(x[, base]) -> the logarithm of x to the given base. If the base not specified, returns the natural logarithm (base e) of x. DATA False = False True = True