Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
hate bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x24a committed May 13, 2023
1 parent 24ca8d2 commit d816ca1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hiyobot/hackchat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import websocket,ssl,json,threading,uuid,time,logging,re,traceback
from functools import wraps
HIYOBOT_VERSION=(0,2,1)
HIYOBOT_VERSION=(0,2,2)
MAX_RECV_LOG_LIMIT=100 #0 for no limit
class Bot:
"""
Expand Down
6 changes: 3 additions & 3 deletions hiyobot/zhangchat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import websocket,ssl,json,threading,uuid,time,logging,re,traceback
from functools import wraps
HIYOBOT_VERSION=(0,2,1)
HIYOBOT_VERSION=(0,2,2)
MAX_RECV_LOG_LIMIT=100 #0 for no limit
class Bot:
"""
Expand Down Expand Up @@ -32,9 +32,9 @@ def on(self,matcher):
def decorate(func):
@wraps(func)
def wrapper(session, data,*args, **kwargs):
if matcher.match_all(data):
if matcher.match_all(data.__dict__):
logging.debug(f"Matched! Function={func} Matcher={matcher}")
return func(session=session, data=data.__dict__, *args, **kwargs)
return func(session=session, data=data, *args, **kwargs)
else:
return None
self.events.append(wrapper)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='hiyobot', # 你的项目名称
version="0.2.1", # 你的项目版本
version="0.2.2", # 你的项目版本
description='A simple bot framework for Hack.chat.', # 你的项目简介
long_description=open('README.md').read(), # 你的项目详细介绍,一般从README.md文件中读取
long_description_content_type='text/markdown', # 你的项目详细介绍的格式,一般为markdown格式
Expand Down

0 comments on commit d816ca1

Please sign in to comment.