Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Commit ad5991d

Browse files
committed
Userbot: Improve updater and memes
special thanks @keselekpermen69
1 parent e4b2681 commit ad5991d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

userbot/modules/memes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,11 @@ async def iqless(e):
943943
await e.edit("♿")
944944

945945

946+
@register(outgoing=True, pattern="^.fuck$")
947+
async def iqless(e):
948+
await e.edit("🖕🖕🖕🖕🖕🖕🖕🖕\n🖕🖕🖕🖕🖕🖕🖕🖕\n🖕🖕\n🖕🖕\n🖕🖕\n🖕🖕🖕🖕🖕🖕\n🖕🖕🖕🖕🖕🖕\n🖕🖕\n🖕🖕\n🖕🖕\n🖕🖕\n🖕🖕")
949+
950+
946951
@register(outgoing=True, pattern="^.moon$")
947952
async def moon(event):
948953
deq = deque(list("🌗🌘🌑🌒🌓🌔🌕🌖"))
@@ -1353,5 +1358,9 @@ async def nou(e):
13531358
\n\n.scam <action> <time>\
13541359
\n[Available Actions: (typing, contact, game, location, voice, round, video, photo, document, cancel)]\
13551360
\nUsage: Create fake chat actions, for fun. (Default action: typing)\
1361+
\n\nAnd many more\
1362+
\n.nou ; .bot ; .gey ; .gey ; .tf ; .paw ; .taco ; .nih ;\
1363+
\n.fag ; .gtfo ; .stfu ; .lol ; .lool ; .fail ; .leave\
1364+
\n.love ; .rain ; .earth ; .fuck\
13561365
\n\n\nThanks to 🅱️ottom🅱️ext🅱️ot (@NotAMemeBot) for some of these."
13571366
})

userbot/modules/updater.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from git import Repo
1717
from git.exc import GitCommandError, InvalidGitRepositoryError, NoSuchPathError
1818

19-
from userbot import CMD_HELP, bot, HEROKU_APIKEY, HEROKU_APPNAME, UPSTREAM_REPO_URL
19+
from userbot import BOTLOG, BOTLOG_CHATID, CMD_HELP, bot, HEROKU_APIKEY, HEROKU_APPNAME, UPSTREAM_REPO_URL
2020
from userbot.events import register
2121

2222
requirements_path = path.join(
@@ -179,6 +179,12 @@ async def upstream(ups):
179179
reqs_upgrade = await update_requirements()
180180
await ups.edit('`Successfully Updated!\n'
181181
'Bot is restarting... Wait for a second!`')
182+
183+
if BOTLOG:
184+
await ups.client.send_message(
185+
BOTLOG_CHATID, "#UPDATE \n"
186+
"Your One4uBot was successfully updated")
187+
182188
# Spin a new instance of bot
183189
args = [sys.executable, "-m", "userbot"]
184190
execle(sys.executable, *args, environ)

0 commit comments

Comments
 (0)