This commit is contained in:
un1xx committed 2025-04-21 22:04:43 +05:30
1 parent 73f97cfb20
commit e6c5285b86
2 files changed
+10 -1

No files matched your search

+7
View File
@@ -14,6 +14,7 @@ from contextlib import redirect_stdout
import aiofiles
import aiohttp
import discord
import pnwkit
from discord.ext import commands
from utils.paginator import Paginator
@@ -27,6 +28,12 @@ class REPL(commands.Cog):
self._last_result = None
self.sessions = set()
self.session = aiohttp.ClientSession(loop=bot.loop)
self.kit = pnwkit.QueryKit(
api_key=os.getenv("pnwAPIKEY"),
bot_key=os.getenv("pnwBOTKEY"),
bot_key_api_key=os.getenv("pnwACCKEY"),
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
)
def cleanup_code(self, content):
"Automatically removes code blocks from the code."