This commit is contained in:
2025-08-16 19:16:03 +02:00
parent ab1ebed5f4
commit 92f2992b97
+2 -2
View File
@@ -8,7 +8,7 @@ from queue import Empty
import discord
import pdf2image
import fitz
#import fitz
import PyPDF2
import requests
from discord.ext import commands, tasks
@@ -54,7 +54,7 @@ class DataModule(commands.Cog):
filename = res[random.randrange(0, len(res) - 1)]
# select random page
file = open(DIR_PATH_SADOX + filename, "rb")
if True:
if False:
doc = fitz.open(DIR_PATH_SADOX + filename)
totalpages = len(doc)
page_index = random.randrange(0, totalpages)