mirror of
https://git.sdf.org/tamservo/robottas.git
synced 2025-11-16 02:53:47 -05:00
Fix send_image file handle issue.
This commit is contained in:
@@ -51,7 +51,7 @@ class Robottas(commands.Bot):
|
|||||||
file_name = os.path.dirname(os.path.realpath(__file__))
|
file_name = os.path.dirname(os.path.realpath(__file__))
|
||||||
file_name = os.path.join(file_name, image_file)
|
file_name = os.path.join(file_name, image_file)
|
||||||
with open(file_name, "rb") as handle:
|
with open(file_name, "rb") as handle:
|
||||||
df = discord.File(handle.read(), filename=file_name)
|
df = discord.File(handle, filename=file_name)
|
||||||
await ctx.send(file=df)
|
await ctx.send(file=df)
|
||||||
|
|
||||||
def send_delay_message(self, message):
|
def send_delay_message(self, message):
|
||||||
|
|||||||
Reference in New Issue
Block a user