misc.py 706 B

12345678910111213141516171819202122
  1. from wbb import app
  2. from wbb.utils import cust_filter, random_line
  3. __MODULE__ = "Misc"
  4. __HELP__ = '''
  5. /commit - Generate Funny Commit Messages
  6. /runs - Idk Test Yourself
  7. /quote - Get Random Linux Quotes'''
  8. @app.on_message(cust_filter.command(commands=("commit")))
  9. async def commit(client, message):
  10. await message.reply_text((await random_line('wbb/utils/commit.txt')))
  11. @app.on_message(cust_filter.command(commands=("runs")))
  12. async def commit(client, message):
  13. await message.reply_text((await random_line('wbb/utils/runs.txt')))
  14. @app.on_message(cust_filter.command(commands=("quote")))
  15. async def quotes(client, message):
  16. await message.reply_text((await random_line('wbb/utils/quotes.txt')))