Просмотр исходного кода

Added dirty scripts from the dark side of the universe

thehamkercat 5 лет назад
Родитель
Сommit
ff2a4b646f
5 измененных файлов с 29 добавлено и 8 удалено
  1. 9 7
      sample_config.ini
  2. 2 0
      wbb/__init__.py
  3. 1 1
      wbb/modules/commit.py
  4. 16 0
      wbb/modules/repo.py
  5. 1 0
      wbb/start.txt

+ 9 - 7
sample_config.ini

@@ -1,14 +1,16 @@
 [pyrogram]
 [pyrogram]
-bot_token =
-api_id =
-api_hash =
+bot_token = 123456789:AAF30XNmCurueFA44kwd7v64cPKcPv5w8RscW6
+api_id = 123456
+api_hash = r7s8c3b22d4869bd6ca7cc756cb9
 
 
 [admin]
 [admin]
-owner_id =
+owner_id = 1243703097
+developer_username = @thehamkercat
+repo_url = github.com/thehamkercat/WilliamButcherBot
 
 
 [prefix]
 [prefix]
-prefixes = / !
+prefixes = /
 
 
 [mods]
 [mods]
-load_modules = 
-noload_modules = 
+load_modules =
+noload_modules =

+ 2 - 0
wbb/__init__.py

@@ -32,6 +32,8 @@ log = logging.getLogger()
 config = ConfigParser()
 config = ConfigParser()
 config.read("config.ini")
 config.read("config.ini")
 OWNER_ID = int(config.get("admin", "owner_id"))
 OWNER_ID = int(config.get("admin", "owner_id"))
+DEVELOPER_USERNAME = (config.get("admin", "developer_username"))
+REPO_URL = (config.get("admin", "repo_url"))
 Command = config.get("prefix", "prefixes").split()
 Command = config.get("prefix", "prefixes").split()
 MOD_LOAD = config.get("mods", "load_modules").split()
 MOD_LOAD = config.get("mods", "load_modules").split()
 MOD_NOLOAD = config.get("mods", "noload_modules").split()
 MOD_NOLOAD = config.get("mods", "noload_modules").split()

+ 1 - 1
wbb/modules/commit.py

@@ -3,7 +3,7 @@ from pyrogram import filters
 from wbb.utils import cust_filter, random_line
 from wbb.utils import cust_filter, random_line
 
 
 __MODULE__ = "Commit"
 __MODULE__ = "Commit"
-__HELP__ = "A Fun little module, try /commit uwu"
+__HELP__ = "A Funny little module, try /commit uwu"
 
 
 
 
 @app.on_message(cust_filter.command(commands=(["commit"])))
 @app.on_message(cust_filter.command(commands=(["commit"])))

+ 16 - 0
wbb/modules/repo.py

@@ -0,0 +1,16 @@
+from wbb import app, DEVELOPER_USERNAME, REPO_URL
+from pyrogram import filters
+from wbb.utils import cust_filter
+
+__MODULE__ = "Repo"
+__HELP__ = "Do /repo To Get My Github Repository Link"
+
+
+@app.on_message(cust_filter.command(commands=(["repo"])))
+async def commit(client, message):
+    await message.reply_text(f'''
+Developer - {DEVELOPER_USERNAME}
+
+Repo - {REPO_URL}
+
+PRs Are Always Welcomed''')

+ 1 - 0
wbb/start.txt

@@ -9,3 +9,4 @@ Well Well Well if it ain't the invisible cunt.
 Why i'm dying to live if i'm living to die?
 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.
 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.
 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!