Skip to content

Commit 77db212

Browse files
refactor(bots): rename discord and reddit bots (#400)
1 parent 9c18103 commit 77db212

18 files changed

+21
-21
lines changed

src/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
# local imports, import after env loaded
99
from src.common import globals # noqa: E402
10-
from src.discord import bot as d_bot # noqa: E402
10+
from src.discord_bot import bot as d_bot # noqa: E402
1111
from src.common import webapp # noqa: E402
12-
from src.reddit import bot as r_bot # noqa: E402
12+
from src.reddit_bot import bot as r_bot # noqa: E402
1313

1414

1515
def main():
File renamed without changes.

src/discord/bot.py renamed to src/discord_bot/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# local imports
1111
from src.common.common import bot_name, data_dir, get_avatar_bytes, org_name
1212
from src.common.database import Database
13-
from src.discord.views import DonateCommandView
13+
from src.discord_bot.views import DonateCommandView
1414

1515

1616
class Bot(discord.Bot):
@@ -23,7 +23,7 @@ class Bot(discord.Bot):
2323
"""
2424
def __init__(self, *args, **kwargs):
2525
# tasks need to be imported here to avoid circular imports
26-
from src.discord import tasks
26+
from src.discord_bot import tasks
2727

2828
if 'intents' not in kwargs:
2929
intents = discord.Intents.all()
@@ -43,7 +43,7 @@ def __init__(self, *args, **kwargs):
4343
self.role_update_task = tasks.role_update_task
4444

4545
self.load_extension(
46-
name='src.discord.cogs',
46+
name='src.discord_bot.cogs',
4747
recursive=True,
4848
store=False,
4949
)

src/discord/cogs/base_commands.py renamed to src/discord_bot/cogs/base_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
# local imports
66
from src.common.common import avatar, bot_name, colors, org_name, version
7-
from src.discord.views import DonateCommandView
8-
from src.discord import cogs_common
7+
from src.discord_bot.views import DonateCommandView
8+
from src.discord_bot import cogs_common
99

1010

1111
class BaseCommandsCog(discord.Cog):

src/discord/cogs/fun_commands.py renamed to src/discord_bot/cogs/fun_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
# local imports
1010
from src.common.common import avatar, bot_name, colors
11-
from src.discord.views import RefundCommandView
12-
from src.discord import cogs_common
11+
from src.discord_bot.views import RefundCommandView
12+
from src.discord_bot import cogs_common
1313

1414

1515
class FunCommandsCog(discord.Cog):

src/discord/cogs/support_commands.py renamed to src/discord_bot/cogs/support_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
# local imports
1414
from src.common.common import avatar, bot_name, colors, data_dir
15-
from src.discord.views import DocsCommandView
16-
from src.discord import cogs_common
15+
from src.discord_bot.views import DocsCommandView
16+
from src.discord_bot import cogs_common
1717

1818

1919
class SupportCommandsCog(discord.Cog):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)