Tell — Message passer

Queue messages to pass a user when they’re next seen.

Commands

.tell <user> <message>

When <user> is next seen online, they will be sent a PM with <message>.

Class Reference

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

Bases: pyircbot.modulebase.ModuleBase

showtell(msg, cmd)[source]
tellcmds(msg, cmd)[source]
static timesince(d, now=None)[source]

Takes two datetime objects and returns the time between d and now as a nicely formatted string, e.g. “10 minutes”. If d occurs after now, then “0 minutes” is returned.

Units used are years, months, weeks, days, hours, and minutes. Seconds and microseconds are ignored. Up to two adjacent units will be displayed. For example, “2 weeks, 3 days” and “1 year, 3 months” are possible outputs, but “2 weeks, 3 hours” and “1 year, 5 days” are not.

Adapted from http://blog.natbat.co.uk/archive/2003/Jun/14/time_since

static timeuntil(d, now=None)[source]

Like timesince, but returns a string measuring the time until the given time.