add infermatic-text and whois plugins for AI text generation and WHOIS lookups
This commit is contained in:
@@ -118,7 +118,7 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
r = response.json()
|
||||
|
||||
# Use secure temporary file
|
||||
with tempfile.NamedTemporaryFile(suffix='.jpg', delete=False) as temp_file:
|
||||
with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as temp_file:
|
||||
filename = temp_file.name
|
||||
temp_file.write(base64.b64decode(r['images'][0]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user