diff --git a/robottas.py b/robottas.py index aac5069..65b1dab 100755 --- a/robottas.py +++ b/robottas.py @@ -51,7 +51,7 @@ class Robottas(commands.Bot): file_name = os.path.dirname(os.path.realpath(__file__)) file_name = os.path.join(file_name, image_file) 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) def send_delay_message(self, message):