def ddate(self, irc, msg, args, year=None, month=None, day=None): """[<year> <month> <day>] Returns a the Discordian date today, or an optional different date.""" if _ddate is not None: if year is not None and month is not None and day is not None: try: irc.reply(_ddate(datetime(year=year, month=month, day=day))) except ValueError as e: irc.error("%s", e) else: irc.reply(_ddate()) else: irc.error(format(_("The 'ddate' module is not installed. Use " "'%s -m pip install --user ddate' or see " "%u for more information."), sys.executable, "https://pypi.python.org/pypi/ddate/"))