Skip to content

Commit 8a2bad7

Browse files
committed
Rename objects -> models
1 parent 1894e00 commit 8a2bad7

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

bot.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
__version__ = '2.11.0'
2626

27-
from os import listdir
2827
import asyncio
28+
from os import listdir
2929
from textwrap import dedent
3030
from datetime import datetime
3131
from types import SimpleNamespace
@@ -38,17 +38,16 @@
3838
import uvloop
3939
from aiohttp import ClientSession
4040
from motor.motor_asyncio import AsyncIOMotorClient
41-
import colorama
42-
from colorama import Fore, Style
41+
from colorama import init, Fore, Style
4342
from emoji import UNICODE_EMOJI
4443

4544
from core.clients import Github, ModmailApiClient, SelfHostedClient
4645
from core.thread import ThreadManager
4746
from core.config import ConfigManager
4847
from core.changelog import ChangeLog
49-
from core.objects import Bot
48+
from core.models import Bot
5049

51-
colorama.init()
50+
init()
5251

5352
LINE = Fore.BLACK + Style.BRIGHT + '-------------------------' + \
5453
Style.RESET_ALL

cogs/modmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from core.paginator import PaginatorSession
1111
from core.time import UserFriendlyTime, human_timedelta
1212
from core.utils import truncate, User
13-
from core.objects import Bot
13+
from core.models import Bot
1414

1515

1616
class Modmail:

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from core.decorators import auth_required, owner_only, trigger_typing
1818
from core.changelog import ChangeLog
1919
from core.utils import cleanup_code
20-
from core.objects import Bot
20+
from core.models import Bot
2121

2222

2323
class Utility:

core/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from discord import Embed, Color
66

7-
from core.objects import Bot
7+
from core.models import Bot
88

99

1010
class Version:

core/clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from aiohttp import ClientResponseError, ClientResponse
99
from pymongo import ReturnDocument
1010

11-
from core.objects import Bot, UserClient
11+
from core.models import Bot, UserClient
1212

1313

1414
class ApiClient:

core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import json
44

5-
from core.objects import Bot, ConfigManagerABC
5+
from core.models import Bot, ConfigManagerABC
66

77

88
class ConfigManager(ConfigManagerABC):
File renamed without changes.

core/thread.py

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

99
import discord
1010
from discord.ext.commands import UserInputError, CommandError
11-
from colorthief import ColorThief
1211

12+
from colorthief import ColorThief
1313

1414
from core.decorators import async_executor
1515
from core.utils import is_image_url, days, match_user_id, parse_image_url
16-
from core.objects import Bot, ThreadManagerABC, ThreadABC
16+
from core.models import Bot, ThreadManagerABC, ThreadABC
1717

1818

1919
class Thread(ThreadABC):

core/time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from datetime import datetime
88

99
from discord.ext.commands import BadArgument, Converter
10+
1011
import parsedatetime as pdt
1112
from dateutil.relativedelta import relativedelta
1213

0 commit comments

Comments
 (0)