Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
markjohanson183 authored May 1, 2023
1 parent 8567f8d commit 9ff5a74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions bot/modules/authorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def authorize(update, context):
else:
id_ = update.effective_chat.id
if id_ in user_data and user_data[id_].get('is_auth'):
msg = 'Already Authorized!'
msg = 'Already Authorized 🔰'
else:
update_user_ldata(id_, 'is_auth', True)
if DATABASE_URL:
DbManger().update_user_data(id_)
msg = 'Authorized'
msg = 'Successfully Authorized 🔰'
sendMessage(msg, context.bot, update.message)

def unauthorize(update, context):
Expand All @@ -35,9 +35,9 @@ def unauthorize(update, context):
update_user_ldata(id_, 'is_auth', False)
if DATABASE_URL:
DbManger().update_user_data(id_)
msg = 'Unauthorized'
msg = 'Unauthorized 🚫'
else:
msg = 'Already Unauthorized!'
msg = 'Already Unauthorized 🚫'
sendMessage(msg, context.bot, update.message)

def addSudo(update, context):
Expand All @@ -49,12 +49,12 @@ def addSudo(update, context):
id_ = reply_message.from_user.id
if id_:
if is_sudo(id_):
msg = 'Already Sudo! 🤔'
msg = 'Already Sudo 🔰'
else:
update_user_ldata(id_, 'is_sudo', True)
if DATABASE_URL:
DbManger().update_user_data(id_)
msg = 'Promoted as Sudo 🤣'
msg = 'Promoted as Sudo 🔰'
else:
msg = "Give ID or Reply To message of whom you want to Promote."
sendMessage(msg, context.bot, update.message)
Expand All @@ -70,7 +70,7 @@ def removeSudo(update, context):
update_user_ldata(id_, 'is_sudo', False)
if DATABASE_URL:
DbManger().update_user_data(id_)
msg = 'Demoted'
msg = 'Demoted 🚫'
else:
msg = "Give ID or Reply To message of whom you want to remove from Sudo"
sendMessage(msg, context.bot, update.message)
Expand Down
2 changes: 1 addition & 1 deletion bot/modules/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def countNode(update, context):
gd = GoogleDriveHelper()
result = gd.count(link)
deleteMessage(context.bot, msg)
cc = f'\n<b>╰👤 cc: </b>{tag}'
cc = f'\n<b>Count By: </b>{tag}'
sendMessage(result + cc, context.bot, update.message)
else:
msg = 'Send Gdrive link along with command or by replying to the link by command'
Expand Down

0 comments on commit 9ff5a74

Please sign in to comment.