|
@@ -147,7 +147,7 @@ async def addgif_handler(bot, event, command):
|
|
|
# Very, very, VERY evil code...
|
|
|
async def make_message_shot(bot, message):
|
|
|
proc = await create_subprocess_shell(
|
|
|
- f'./makeshot/makeshot',
|
|
|
+ './makeshot/makeshot',
|
|
|
stdin=PIPE
|
|
|
)
|
|
|
|
|
@@ -164,6 +164,12 @@ async def make_message_shot(bot, message):
|
|
|
|
|
|
full_name = get_display_name(message.sender)
|
|
|
|
|
|
+ # TO-DO: make it better.
|
|
|
+ mproc = await create_subprocess_shell(
|
|
|
+ f'mogrify -format png {avatar_path}'
|
|
|
+ )
|
|
|
+ await mproc.communicate()
|
|
|
+
|
|
|
data = bytes()
|
|
|
|
|
|
data += pack('I', len(output_path))
|