aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/core
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-05-01 14:38:18 +0100
committerGravatar shtlrs <[email protected]>2023-05-06 13:20:47 +0100
commita976c7888423e657f946ac567695c7da23e9f9a7 (patch)
tree764fcaf5a3891378578efc5a70de894a160ccedc /bot/exts/core
parentRevert "redeem lost bot references" (diff)
revert renaming of Client to Bot
Diffstat (limited to 'bot/exts/core')
-rw-r--r--bot/exts/core/extensions.py4
-rw-r--r--bot/exts/core/help.py4
-rw-r--r--bot/exts/core/internal_eval/_internal_eval.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/core/extensions.py b/bot/exts/core/extensions.py
index 3b1a1e8a..1d22cf37 100644
--- a/bot/exts/core/extensions.py
+++ b/bot/exts/core/extensions.py
@@ -11,7 +11,7 @@ from pydis_core.utils._extensions import unqualify
from bot import exts
from bot.bot import Bot
-from bot.constants import Bot, Emojis, MODERATION_ROLES, Roles
+from bot.constants import Client, Emojis, MODERATION_ROLES, Roles
from bot.utils.checks import with_role_check
from bot.utils.pagination import LinePaginator
@@ -155,7 +155,7 @@ class Extensions(commands.Cog):
embed = Embed(colour=Colour.og_blurple())
embed.set_author(
name="Extensions List",
- url=Bot.github_repo,
+ url=Client.github_bot_repo,
icon_url=str(self.bot.user.display_avatar.url)
)
diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py
index d031cafe..30deaff4 100644
--- a/bot/exts/core/help.py
+++ b/bot/exts/core/help.py
@@ -311,7 +311,7 @@ class HelpSession:
self._pages = paginator.pages
async def _add_command_signature(self, paginator: LinePaginator) -> None:
- prefix = constants.Bot.prefix
+ prefix = constants.Client.prefix
signature = self._get_command_params(self.query)
paginator.add_line(f"**```\n{prefix}{signature}\n```**")
@@ -405,7 +405,7 @@ class HelpSession:
if isinstance(self.query, commands.Command):
prefix = ""
else:
- prefix = constants.Bot.prefix
+ prefix = constants.Client.prefix
signature = self._get_command_params(command)
info = f"{strikeout}**`{prefix}{signature}`**{strikeout}"
diff --git a/bot/exts/core/internal_eval/_internal_eval.py b/bot/exts/core/internal_eval/_internal_eval.py
index 7365effc..2daf8ef9 100644
--- a/bot/exts/core/internal_eval/_internal_eval.py
+++ b/bot/exts/core/internal_eval/_internal_eval.py
@@ -43,7 +43,7 @@ class InternalEval(commands.Cog):
self.bot = bot
self.locals = {}
- if Bot.debug:
+ if Client.debug:
self.internal_group.add_check(commands.is_owner().predicate)
@staticmethod