Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 5d2a621

Browse files
committed
feat: lite version && v1.6.1-lite
1 parent cfdfe5e commit 5d2a621

File tree

9 files changed

+2
-236
lines changed

9 files changed

+2
-236
lines changed

classes/bot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from config import BAD, STATUS
1212
from constants import OPTION_TYPES, DATABASE_INIT
1313
from utils import setup_logging
14-
from .crypt import AESCipher
1514
from .database import Database
1615

1716

@@ -22,7 +21,6 @@ def __init__(self):
2221
self.logger = getLogger(__name__)
2322
self.start_time = time()
2423
self.session = uuid4()
25-
self.crypt = AESCipher(getenv("TOKEN"))
2624
self.db = Database
2725
for filename in listdir("functions"):
2826
if filename.endswith(".py"):

classes/crypt.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

functions/default.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

functions/dev.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

functions/help.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

utils/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from .commands import slash_command
22
from .logger import setup_logging
3-
from .utils import datetime_to_unix, get_time, help_maker
3+
from .utils import datetime_to_unix, get_time
44

55
__all__ = [
66
"slash_command",
77
"setup_logging",
88
"datetime_to_unix",
9-
"get_time",
10-
"help_maker"
9+
"get_time"
1110
]

utils/utils.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from datetime import datetime
22
from time import mktime
3-
from typing import Optional
43

5-
from discord import Embed, SelectOption
64
from pytz import timezone
75

86

@@ -12,21 +10,3 @@ def get_time() -> datetime:
1210

1311
def datetime_to_unix(n: datetime) -> int:
1412
return int(mktime(n.timetuple()))
15-
16-
17-
def help_maker(raw: dict, color: int, is_embed: Optional[bool] = True) -> list[Embed] | list[SelectOption]:
18-
embed_list = []
19-
for title in raw:
20-
embed_list.append(
21-
Embed(
22-
title=title,
23-
description=raw[title],
24-
color=color
25-
)
26-
if is_embed else
27-
SelectOption(
28-
label=title,
29-
description=raw[title]
30-
)
31-
)
32-
return embed_list

views/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
from .help import HelpMenu
2-
3-
__all__ = [
4-
"HelpMenu"
5-
]

views/help.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)