Skip to content

Commit

Permalink
change tg_bot to makibot
Browse files Browse the repository at this point in the history
  • Loading branch information
mzfshark committed Sep 15, 2021
1 parent a2a5de3 commit e911b6a
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion makibot/modules/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session

from tg_bot import DB_URI
from makibot import DB_URI


def start() -> scoped_session:
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/afk_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, UnicodeText, Boolean, Integer

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION


class AFK(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/antiflood_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, Integer, String

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION

DEF_COUNT = 0
DEF_LIMIT = 0
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/blacklist_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import func, distinct, Column, String, UnicodeText

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class BlackListFilters(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/cust_filters_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, String, UnicodeText, Boolean, Integer, distinct, func

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION


class CustomFilters(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/disable_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, String, UnicodeText, func, distinct

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class Disable(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/global_bans_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, UnicodeText, Integer, String, Boolean

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION


class GloballyBannedUsers(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/locks_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from sqlalchemy import Column, String, Boolean

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class Permissions(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/log_channel_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, String, func, distinct

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION


class GroupLogs(BASE):
Expand Down
4 changes: 2 additions & 2 deletions makibot/modules/sql/notes_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from sqlalchemy import Column, String, Boolean, UnicodeText, Integer, func, distinct

from tg_bot.modules.helper_funcs.msg_types import Types
from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.helper_funcs.msg_types import Types
from makibot.modules.sql import SESSION, BASE


class Notes(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/reporting_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from sqlalchemy import Column, Integer, String, Boolean

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class ReportingUserSettings(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/rss_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, UnicodeText, Integer

from tg_bot.modules.sql import BASE, SESSION
from makibot.modules.sql import BASE, SESSION


class RSS(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/rules_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, String, UnicodeText, func, distinct

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class Rules(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/userinfo_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlalchemy import Column, Integer, UnicodeText

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class UserInfo(BASE):
Expand Down
4 changes: 2 additions & 2 deletions makibot/modules/sql/users_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from sqlalchemy import Column, Integer, UnicodeText, String, ForeignKey, UniqueConstraint, func

from tg_bot import dispatcher
from tg_bot.modules.sql import BASE, SESSION
from makibot import dispatcher
from makibot.modules.sql import BASE, SESSION


class Users(BASE):
Expand Down
2 changes: 1 addition & 1 deletion makibot/modules/sql/warns_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlalchemy import Integer, Column, String, UnicodeText, func, distinct, Boolean
from sqlalchemy.dialects import postgresql

from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.sql import SESSION, BASE


class Warns(BASE):
Expand Down
4 changes: 2 additions & 2 deletions makibot/modules/sql/welcome_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from sqlalchemy import Column, String, Boolean, UnicodeText, Integer, BigInteger

from tg_bot.modules.helper_funcs.msg_types import Types
from tg_bot.modules.sql import SESSION, BASE
from makibot.modules.helper_funcs.msg_types import Types
from makibot.modules.sql import SESSION, BASE

DEFAULT_WELCOME = "Hey {first}, how are you?"
DEFAULT_GOODBYE = "Nice knowing ya!"
Expand Down

0 comments on commit e911b6a

Please sign in to comment.