Skip to content

Commit

Permalink
refact(files): add new folder at root
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Oct 4, 2023
1 parent b77c70e commit 38a7d56
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/modules/admin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from git import GitCommandError
from git.repo import Repo

from src.checks import is_bot_admin
from src.utils.checks import is_bot_admin
from src.cobot import CObot, COInteraction


Expand Down
4 changes: 2 additions & 2 deletions src/modules/giveaways/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from discord.ext import commands, tasks

from src.cobot import CObot, COInteraction
from src.confirm_view import ConfirmView
from src.custom_args import ColorOption, DurationOption
from src.utils.confirm_view import ConfirmView
from src.utils.custom_args import ColorOption, DurationOption
from src.modules.giveaways.types import GiveawayData, GiveawayToSendData
from src.modules.giveaways.views import GiveawayView

Expand Down
5 changes: 2 additions & 3 deletions src/checks.py → src/utils/checks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .cobot import COInteraction

from src.cobot import COInteraction

async def is_bot_admin(interaction: COInteraction) -> bool:
"""Check if the user is a bot admin."""
return interaction.user.id in interaction.client.config["ADMIN_IDS"]
return interaction.user.id in interaction.client.config["ADMIN_IDS"]
File renamed without changes.
File renamed without changes.

0 comments on commit 38a7d56

Please sign in to comment.