瀏覽代碼

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

thehamkercat 5 年之前
父節點
當前提交
cef1a02e1d
共有 4 個文件被更改,包括 4 次插入 和 4 次删除
  1. 2 2
      wbb/__main__.py
  2. 二進制
      wbb/__pycache__/__main__.cpython-39.pyc
  3. 二進制
      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()

二進制
wbb/__pycache__/__main__.cpython-39.pyc


二進制
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"])))