Przeglądaj źródła

Changed some file location, fixed some things

TheHamkerCat 5 lat temu
rodzic
commit
3fd9d72252
5 zmienionych plików z 4 dodań i 36 usunięć
  1. 3 2
      wbb/__main__.py
  2. 0 10
      wbb/modules/commit.py
  3. 1 2
      wbb/modules/images.py
  4. 0 10
      wbb/modules/quotes.py
  5. 0 12
      wbb/utils/start.txt

+ 3 - 2
wbb/__main__.py

@@ -5,7 +5,7 @@ import importlib
 from pyrogram import filters, idle
 from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
 from wbb import app, MOD_NOLOAD
-from wbb.utils import random_line, get_info, paginate_modules, cust_filter
+from wbb.utils import get_info, paginate_modules, cust_filter
 from wbb.utils import botinfo
 from wbb.modules import ALL_MODULES
 
@@ -58,8 +58,9 @@ async def start_bot():
 
 @app.on_message(cust_filter.command("start"))
 async def start(client, message):
+    bot_uptime = int(time.time() - bot_start_time)
     if message.chat.type != "private":
-        await message.reply_text((await random_line("wbb/utils/start.txt")))
+        await message.reply_text(f'Already Online Since {bot_uptime}')
         return
     await message.reply("Get Some /help")
 

+ 0 - 10
wbb/modules/commit.py

@@ -1,10 +0,0 @@
-from wbb import app
-from wbb.utils import cust_filter, random_line
-
-__MODULE__ = "Commit"
-__HELP__ = "/commit - Generate Funny Commit Messages"
-
-
-@app.on_message(cust_filter.command(commands=("commit")))
-async def commit(client, message):
-    await message.reply_text((await random_line('wbb/utils/commit.txt')))

+ 1 - 2
wbb/modules/images.py

@@ -47,8 +47,7 @@ async def wall(client, message):
     else:
         wallpapers = json_rep.get("wallpapers")
         if not wallpapers:
-            await m.edit(
-                "Found literally nothing!,You should work on your English.")
+            await m.edit("404")
             return
         else:
             index = randint(0, len(wallpapers) - 1)

+ 0 - 10
wbb/modules/quotes.py

@@ -1,10 +0,0 @@
-from wbb import app
-from wbb.utils import cust_filter, random_line
-
-__MODULE__ = "Quotes"
-__HELP__ = "/quote - Generate Funny Linux Quotes"
-
-
-@app.on_message(cust_filter.command(commands=("quote")))
-async def quotes(client, message):
-    await message.reply_text((await random_line('wbb/utils/quotes.txt')))

+ 0 - 12
wbb/utils/start.txt

@@ -1,12 +0,0 @@
-Translucent's Always Been My Favorite.
-I Didn't Came Here For A Fucking Happy Meal.
-Fuckin’ diabolical.
-I just had to pop down to the shop …  I was running a bit low on mind your own fucking business.
-You see, when they’re apart, they’re absolute fuckin’ rubbish … but you put them together, they’re the goddamn fucking Spice Girls.
-Sounds good, does it taste like lies? I’ve got your phone linked to my Find Your Shithead Friends app. Now where the fuck are you?
-Shake Shack, huh? Nice try Cunt!
-Well Well Well if it ain't the invisible cunt.
-Why i'm dying to live if i'm living to die?
-Mama ain't raised no bitch, ima speak up when i need to.
-Not to brag but i don't even need errors to make bad decisions.
-What Am I? Friend or Foe? Bot or Hoe?, No one knows!