Skip to content

Commit 2e84a29

Browse files
authored
Merge pull request #24 from Electrium-Mobility/copilot/sub-pr-21-another-one
[WIP] Update outline document function implementation based on feedback
2 parents c92e478 + 5dabdd7 commit 2e84a29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bot/features/smart_qa/cog.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from discord.ext import commands
22
import discord
3+
from io import BytesIO
34
from typing import List, Optional
45
import logging
56
import os
@@ -261,8 +262,6 @@ async def test_get_document(self, ctx: commands.Context, *, document_path: Optio
261262

262263
if content:
263264
# Send document content as text file attachment
264-
from io import BytesIO
265-
266265
response = f"✅ **Document found!**\n**Path:** `{document_path}`\n**Content length:** {len(content)} characters\n\nSending as file attachment..."
267266
await ctx.send(response)
268267

0 commit comments

Comments
 (0)