Calc — IRC fact game

Commands

calc

Returns a random fact

calc <something> = <some definition>

Add a fact

calc <something> =

Delete a fact

match <keyword>

Search facts

Class Reference

class pyircbot.modules.Calc.Calc(bot, moduleName)[source]

Bases: pyircbot.modulebase.ModuleBase

addNewCalc(channel, word, definition, name, host)[source]

Find the channel ID

cmd_calc(message, match)[source]
cmd_match(msg, cmd)[source]
createDefaultTimers(channel)[source]
deleteCalc(channel, word)[source]

Return true if deleted something, false if it doesnt exist

getChannelId(channel)[source]
getRandomCalc(channel)[source]
getSpecificCalc(channel, word)[source]
remainingToStr(total, elasped)[source]
timeSince(channel, timetype)[source]
updateTimeSince(channel, timetype)[source]