ksdfg / neko-chan-telebot Goto Github PK
View Code? Open in Web Editor NEWUpdated version of skitt_bot with some features from SkittBot and more original functionalities
Home Page: https://t.me/ksdfgisabot
License: GNU General Public License v3.0
Updated version of skitt_bot with some features from SkittBot and more original functionalities
Home Page: https://t.me/ksdfgisabot
License: GNU General Public License v3.0
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'
/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
Apparently a thing now, need to add them to stickers module
Essentially, /talk
is working the same ias /talk:
and /talk:.?
.
It shouldn't respond to anything other than just /talk
.
talk
is just used as an example here, issue affecting all command handlers.
Currently it is possible to ban/kick a user even if they aren't a member of the group.
Add a check to see if user is a member of the group or not.
neko-chan-telebot/telebot/modules/filter.py
Line 133 in 5827c8f
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.