aboutsummaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/README.rst6
-rw-r--r--dev/bot/__init__.py4
-rw-r--r--dev/bot/__main__.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/dev/README.rst b/dev/README.rst
index ae4f3adc..9428d788 100644
--- a/dev/README.rst
+++ b/dev/README.rst
@@ -3,7 +3,7 @@ Local Development & Testing
To test your features locally, there are a few possible approaches:
-1. Install your local copy of botcore into a pre-existing project such as bot
+1. Install your local copy of pydis_core into a pre-existing project such as bot
2. Use the provided template from the :repo-file:`dev/bot <dev/bot>` folder
See below for more info on both approaches.
@@ -17,12 +17,12 @@ vary by the feature you're working on.
Option 1
--------
1. Navigate to the project you want to install bot-core in, such as bot or sir-lancebot
-2. Run ``pip install /path/to/botcore`` in the project's environment
+2. Run ``pip install /path/to/pydis_core`` in the project's environment
- The path provided to install should be the root directory of this project on your machine.
That is, the folder which contains the ``pyproject.toml`` file.
- Make sure to install in the correct environment. Most Python Discord projects use
- poetry, so you can run ``poetry run pip install /path/to/botcore``.
+ poetry, so you can run ``poetry run pip install /path/to/pydis_core``.
3. You can now use features from your local bot-core changes.
To load new changes, run the install command again.
diff --git a/dev/bot/__init__.py b/dev/bot/__init__.py
index 71871209..6ee1ae47 100644
--- a/dev/bot/__init__.py
+++ b/dev/bot/__init__.py
@@ -3,7 +3,7 @@ import logging
import os
import sys
-import botcore
+import pydis_core
if os.name == "nt":
# Change the event loop policy on Windows to avoid exceptions on exit
@@ -15,7 +15,7 @@ logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger("discord").setLevel(logging.ERROR)
-class Bot(botcore.BotBase):
+class Bot(pydis_core.BotBase):
"""Sample Bot implementation."""
async def setup_hook(self) -> None:
diff --git a/dev/bot/__main__.py b/dev/bot/__main__.py
index 42d212c2..1b1a551a 100644
--- a/dev/bot/__main__.py
+++ b/dev/bot/__main__.py
@@ -6,11 +6,11 @@ import discord
import dotenv
from discord.ext import commands
-import botcore
+import pydis_core
from . import Bot
dotenv.load_dotenv()
-botcore.utils.apply_monkey_patches()
+pydis_core.utils.apply_monkey_patches()
roles = os.getenv("ALLOWED_ROLES")
roles = [int(role) for role in roles.split(",")] if roles else []