mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2025-07-06 22:34:07 +00:00
Fix font_name
This commit is contained in:
@ -127,7 +127,7 @@ class MessageWorker:
|
|||||||
lexer_guess = guess_lexer(code)
|
lexer_guess = guess_lexer(code)
|
||||||
if lexer_guess.name == 'Text only':
|
if lexer_guess.name == 'Text only':
|
||||||
lexer_guess = get_lexer_by_name('python')
|
lexer_guess = get_lexer_by_name('python')
|
||||||
highlight(code, lexer_guess, ImageFormatter(), outfile="code.png")
|
highlight(code, lexer_guess, ImageFormatter(font_name='DejaVuSansMono'), outfile="code.png")
|
||||||
self.send_img(conf_id)
|
self.send_img(conf_id)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
|
Reference in New Issue
Block a user