

@internationalizeDocstring
def random(self, irc, msg, args, channel):
    "[<channel>]\n\n        Returns a random quote from <channel>.  <channel> is only necessary if\n        the message isn't sent in the channel itself.\n        "
    quote = self.db.random(channel)
    if quote:
        irc.reply(self.showRecord(quote))
    else:
        irc.error((_('I have no quotes in my database for %s.') % channel))

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Quote/plugin.py Quote.random/original