mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2025-07-06 14:24:08 +00:00
Fix font_name
This commit is contained in:
@ -127,7 +127,7 @@ class MessageWorker:
|
||||
lexer_guess = guess_lexer(code)
|
||||
if lexer_guess.name == 'Text only':
|
||||
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)
|
||||
return True
|
||||
except:
|
||||
|
Reference in New Issue
Block a user