aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-02-10 00:28:54 +0000
committerGravatar Chris Lovering <[email protected]>2023-02-10 00:28:54 +0000
commite3cc00e1b731e433917efd466452396d2e214593 (patch)
treeafa1ad1e30d093ab11bc5f2a78529e5b58479474
parentBump to Python 3.10 and mark version as breaking (diff)
Update botcore module name throughout repo
-rw-r--r--metricity/__init__.py2
-rw-r--r--metricity/bot.py6
-rw-r--r--metricity/exts/error_handler.py2
-rw-r--r--metricity/exts/event_listeners/guild_listeners.py2
4 files changed, 6 insertions, 6 deletions
diff --git a/metricity/__init__.py b/metricity/__init__.py
index 9216f05..90dfcfb 100644
--- a/metricity/__init__.py
+++ b/metricity/__init__.py
@@ -7,7 +7,7 @@ from typing import TYPE_CHECKING
import coloredlogs
-from botcore.utils import apply_monkey_patches
+from pydis_core.utils import apply_monkey_patches
from metricity.config import PythonConfig
diff --git a/metricity/bot.py b/metricity/bot.py
index 17e6a6d..3430cbd 100644
--- a/metricity/bot.py
+++ b/metricity/bot.py
@@ -2,8 +2,8 @@
import asyncio
-from botcore import BotBase
-from botcore.utils import logging, scheduling
+from pydis_core import BotBase
+from pydis_core.utils import logging, scheduling
from metricity import exts
from metricity.database import connect
@@ -12,7 +12,7 @@ log = logging.get_logger(__name__)
class Bot(BotBase):
- """A subclass of `botcore.BotBase` that implements bot-specific functions."""
+ """A subclass of `pydis_core.BotBase` that implements bot-specific functions."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
diff --git a/metricity/exts/error_handler.py b/metricity/exts/error_handler.py
index 0f35de2..b3c8fb7 100644
--- a/metricity/exts/error_handler.py
+++ b/metricity/exts/error_handler.py
@@ -1,8 +1,8 @@
"""Handles errors emitted from commands."""
import discord
-from botcore.utils import logging
from discord.ext import commands
+from pydis_core.utils import logging
log = logging.get_logger(__name__)
diff --git a/metricity/exts/event_listeners/guild_listeners.py b/metricity/exts/event_listeners/guild_listeners.py
index 67b20bc..4f14021 100644
--- a/metricity/exts/event_listeners/guild_listeners.py
+++ b/metricity/exts/event_listeners/guild_listeners.py
@@ -1,8 +1,8 @@
"""An ext to listen for guild (and guild channel) events and syncs them to the database."""
import discord
-from botcore.utils import logging, scheduling
from discord.ext import commands
+from pydis_core.utils import logging, scheduling
from metricity import models
from metricity.bot import Bot