Compare commits
No commits in common. "ae045c608259a19e0846b4e943f716ae8e503b5f" and "9af77b99b6c76712c77538b8c2c74f309650189a" have entirely different histories.
ae045c6082
...
9af77b99b6
|
@ -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 != " ":
|
if color_code and char is not " ":
|
||||||
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
|
||||||
|
|
|
@ -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', nargs=2)
|
parser.add_argument('-s', '--start')
|
||||||
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(' '.join(args.start),'%Y-%m-%d %H:%M:%S')
|
start = datetime.strptime(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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user