Compare commits

...

2 Commits

Author SHA1 Message Date
ae045c6082 syntax error 2020-06-29 15:15:48 -04:00
478a826390 bugfix --start 2020-06-29 15:15:33 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
L = R * 299/1000 + G * 587/1000 + B * 114/1000 L = R * 299/1000 + G * 587/1000 + B * 114/1000
index = int(L/range_width) index = int(L/range_width)
char = scales[scale][index] char = scales[scale][index]
if color_code and char is not " ": if color_code and char != " ":
prefix = color_prefix[color_code] + char_color(pixel,color_code) prefix = color_prefix[color_code] + char_color(pixel,color_code)
char = prefix + char char = prefix + char
new_row += char new_row += char

View File

@ -48,7 +48,7 @@ def remind_recur(bot, trigger):
parser = tools.FulviaArgparse() parser = tools.FulviaArgparse()
parser.add_argument('period') parser.add_argument('period')
parser.add_argument('reminder', nargs='*') parser.add_argument('reminder', nargs='*')
parser.add_argument('-s', '--start') parser.add_argument('-s', '--start', nargs=2)
parser.add_argument('-l', '--lazy', action='store_true') parser.add_argument('-l', '--lazy', action='store_true')
parser.add_argument('-r', '--recur', action='store_true') parser.add_argument('-r', '--recur', action='store_true')
try: try:
@ -58,7 +58,7 @@ def remind_recur(bot, trigger):
if args.start: if args.start:
try: try:
start = datetime.strptime(args.start, '%Y-%m-%d %H:%M:%S') start = datetime.strptime(' '.join(args.start),'%Y-%m-%d %H:%M:%S')
except ValueError: except ValueError:
return bot.msg("Datetime improperly formatted.") return bot.msg("Datetime improperly formatted.")
else: else: