Jelajahi Sumber

It's getting hard to keep up with the crap I've trashed

thehamkercat 5 tahun lalu
induk
melakukan
cef1a02e1d
4 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 2 2
      wbb/__main__.py
  2. TEMPAT SAMPAH
      wbb/__pycache__/__main__.cpython-39.pyc
  3. TEMPAT SAMPAH
      wbb/__pycache__/wbb.cpython-39.pyc
  4. 2 2
      wbb/wbb.py

+ 2 - 2
wbb/__main__.py

@@ -1,4 +1,4 @@
-from wbb import app
+from .wbb import app
 
 if __name__ == "__main__":
-    app.run()
+    app.run()

TEMPAT SAMPAH
wbb/__pycache__/__main__.cpython-39.pyc


TEMPAT SAMPAH
wbb/__pycache__/wbb.cpython-39.pyc


+ 2 - 2
wbb/wbb.py

@@ -12,11 +12,11 @@ def random_line(fname):
 
 @app.on_message(filters.command(commands = (["start"])))
 async def start(client, message):
-    await message.reply_text(random_line('start.txt'))
+    await message.reply_text(random_line('wbb/start.txt'))
 
 @app.on_message(filters.command(commands = (["commit"])))
 async def commit(client, message):
-    await message.reply_text(random_line('commit.txt'))
+    await message.reply_text(random_line('wbb/commit.txt'))
 
 
 @app.on_message(filters.command(commands = (["ping"])))