Git Product home page Git Product logo

neko-chan-telebot's People

Contributors

adityavdesai avatar akhilnarang avatar alr0cks avatar anunaym14 avatar dependabot[bot] avatar ksdfg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

anunaym14

neko-chan-telebot's Issues

OpenCV error while deepfrying

25309cc#diff-ff094f2fa9345ba309873d69c91c0fa1R184

Whenever this line runs I get the following error -

An uncaught error was raised while running the promise
Traceback (most recent call last):
  File "/home/ksdfg/stuff/code/neko-chan-telebot/venv/lib/python3.8/site-packages/telegram/utils/promise.py", line 56, in run
    self._result = self.pooled_function(*self.args, **self.kwargs)
  File "/home/ksdfg/stuff/code/neko-chan-telebot/telebot/modules/memes.py", line 214, in fry
    loop.run_until_complete(_fry(Image.open("sticker.png"), update.effective_message.reply_to_message, file))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/ksdfg/stuff/code/neko-chan-telebot/telebot/modules/memes.py", line 185, in _fry
    image = await deepfry(img=image, flares=True)
  File "/home/ksdfg/stuff/code/neko-chan-telebot/venv/lib/python3.8/site-packages/deeppyer/__init__.py", line 54, in deepfry
    faces = face_cascade.detectMultiScale(
cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-6179nsls/opencv/modules/objdetect/src/cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'

Feature request - delete message feature

/del
First check if a message is quoted or not, else error.
Then, bot admin check
Then check if quoted message is user's own, else error if user is not admin
Then can delete if admin, or if its the user's own message

Webm stickers

Apparently a thing now, need to add them to stickers module

Can't Apply Filter reply handler without killing all other modules

dispatcher.add_handler(MessageHandler(Filters.all, reply))

So I'm trying to implement the filter function ala Rose, but the message handler I have added for the reply handler basically kills all other modules - I can only use commands from the filter module. The other handlers don't even get triggered.

For now the only workaround I've found is adding an inverted filter for commands (InvertedFilter(Filters.command)), but Rose ka filter triggers even with command messages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.