소스 검색

Merge pull request #3 from thehamkercat/pnut-dev

Hard coded /repo command's reply again!
Akshay Rajput 5 년 전
부모
커밋
f1a74a75b1
4개의 변경된 파일과 4개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 2
      sample_config.ini
  2. 0 2
      wbb/__init__.py
  3. 3 3
      wbb/modules/repo.py
  4. 1 1
      wbb/start.txt

+ 0 - 2
sample_config.ini

@@ -5,8 +5,6 @@ api_hash = r7s8c3b22d4869bd6ca7cc756cb9
 
 [admin]
 owner_id = 1243703097
-developer_username = @TheHamkerCat
-repo_url = github.com/thehamkercat/WilliamButcherBot
 
 [prefix]
 prefixes = /

+ 0 - 2
wbb/__init__.py

@@ -32,8 +32,6 @@ log = logging.getLogger()
 config = ConfigParser()
 config.read("config.ini")
 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()
 MOD_LOAD = config.get("mods", "load_modules").split()
 MOD_NOLOAD = config.get("mods", "noload_modules").split()

+ 3 - 3
wbb/modules/repo.py

@@ -1,4 +1,4 @@
-from wbb import app, DEVELOPER_USERNAME, REPO_URL
+from wbb import app
 from pyrogram import filters
 from wbb.utils import cust_filter
 
@@ -9,8 +9,8 @@ __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}
+👨‍💻 Developer - @TheHamkerCat
 
-🔗 Repo - {REPO_URL}
+🔗 Repo - github.com/thehamkercat/WilliamButcherBot
 
 ❤️ PRs Are Always Welcomed''', disable_web_page_preview=True)

+ 1 - 1
wbb/start.txt

@@ -4,7 +4,7 @@ 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!.
+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.