remove some unecessary utility functions
@@ -4,7 +4,6 @@ import aiofiles
import asyncpg
import logging
import discord
-import json
import os
def villager_bot_intents() -> discord.Intents:
@@ -40,23 +39,3 @@ def setup_database(bot: commands.Bot, keys: ClassyDict) -> None:
max_size=20,
command_timeout=10,
)
-
-
-def load_text() -> ClassyDict:
- text = {}
-
- for filename in os.listdir("data/text"):
- with open(f"data/text/{filename}", "r", encoding="utf8") as f:
- text.update(json.load(f))
-
- return ClassyDict(text)
-
-
-async def load_text_async() -> ClassyDict:
- text = {}
-
- for filename in os.listdir("data/text"):
- async with aiofiles.open(f"data/text/{filename}", "r", encoding="utf8") as f:
- text.update(json.loads(await f.read()))
-
- return ClassyDict(text)
