Skip to content

Commit

Permalink
UPDATING...
Browse files Browse the repository at this point in the history
  • Loading branch information
Devil-Botz authored Jan 21, 2023
1 parent 615140d commit e9703bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions database/users_chats_db.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# https://github.com/odysseusmax/animated-lamp/blob/master/bot/database/database.py
import motor.motor_asyncio
from info import DATABASE_NAME, DATABASE_URI, IMDB, IMDB_TEMPLATE, MELCOW_NEW_USERS, P_TTI_SHOW_OFF, SINGLE_BUTTON, SPELL_CHECK_REPLY, PROTECT_CONTENT, AUTO_DELETE
from info import DATABASE_NAME, DATABASE_URI, IMDB, IMDB_TEMPLATE, MELCOW_NEW_USERS, P_TTI_SHOW_OFF, SINGLE_BUTTON, SPELL_CHECK_REPLY, PROTECT_CONTENT, AUTO_DELETE, SHORTLINK_API, SHORTLINK_URL, IS_SHORTLINK

class Database:

Expand Down Expand Up @@ -116,7 +116,11 @@ async def get_settings(self, id):
'spell_check': SPELL_CHECK_REPLY,
'welcome': MELCOW_NEW_USERS,
'auto_delete': AUTO_DELETE,
'template': IMDB_TEMPLATE
'template': IMDB_TEMPLATE,
'shortlink': SHORTLINK_URL,
'shortlink_api': SHORTLINK_API,
'is_shortlink': IS_SHORTLINK

}
chat = await self.grp.find_one({'id':int(id)})
if chat:
Expand Down

0 comments on commit e9703bb

Please sign in to comment.