diff --git a/README.md b/README.md index 52715ee..5ce0c42 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,18 @@ # Star Yuuki(pYthon) BOT - Yuuki -![Version](https://img.shields.io/badge/v6.5.3-OpenSource-FF0033.svg) ![Series](https://img.shields.io/badge/syb-Series-7700FF.svg) ![License](https://img.shields.io/badge/license-MPL--2.0-FF6600.svg) ![Python](https://img.shields.io/badge/python-3.x-0066FF.svg) ![Platform](https://img.shields.io/badge/base_on-LINE-00DD00.svg) +> v6 receives security updates only, no feature will be added. -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/build.png?b=master)](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/build-status/master) [![Code Intelligence Status](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) -[![Total alerts](https://img.shields.io/lgtm/alerts/g/star-inc/star_yuuki_bot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/star-inc/star_yuuki_bot/alerts/) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/star-inc/star_yuuki_bot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/star-inc/star_yuuki_bot/context:python) +![Version](https://img.shields.io/badge/v6.5.3-OpenSource-FF0033.svg) +![Series](https://img.shields.io/badge/syb-Series-7700FF.svg) +![License](https://img.shields.io/badge/license-MPL--2.0-FF6600.svg) +![Python](https://img.shields.io/badge/python-3.x-0066FF.svg) +![Platform](https://img.shields.io/badge/base_on-LINE-00DD00.svg) + +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/?branch=master) +[![Build Status](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/build.png?b=master)](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/build-status/master) +[![Code Intelligence Status](https://scrutinizer-ci.com/g/star-inc/star_yuuki_bot/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/star-inc/star_yuuki_bot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/star-inc/star_yuuki_bot/alerts/) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/star-inc/star_yuuki_bot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/star-inc/star_yuuki_bot/context:python) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fstar-inc%2Fstar_yuuki_bot.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fstar-inc%2Fstar_yuuki_bot?ref=badge_shield) The perfectest LINE Group Protective BOT. @@ -20,7 +29,7 @@ This is a LINE Group Security BOT, to solve the problem that prevent from someon As know as the group feature of LINE has a major issue, everyone own the permission to modify the member list. -It's a good idea to be fair, but causes a communicate risk if one of member kick everyone maliciously. +It's a good idea to be fair, but causes a communicated risk if one of member kick everyone maliciously. So a protective solution is necessary, especially for corporation, organization, or education. @@ -58,18 +67,18 @@ This is a magic feature since `v6.5.3` that you can control your BOT with GUI. | Feature | Status | Note | |---|---|---| -| Broadcast | O | Group Only currently | +| Broadcast | O | Group only currently | | Events Viewer | O | | Profile Modify | O | | Groups Management | O | | Helper Management | O | -| Yuuki Configure | X | Developing | +| Yuuki Configure | X | Will be available in v8 | ![WebAdmin](WebAdmin.png) ## Documents -Are you finding how to setup, configure, and use it, or extend its features? +Are you finding how to set up, configure, and use it, or extend its features? The documentation for developers is available on [GitHub Wiki](https://github.com/star-inc/star_yuuki_bot/wiki). diff --git a/libs/__init__.py b/libs/__init__.py index 5f7ce8c..08251df 100644 --- a/libs/__init__.py +++ b/libs/__init__.py @@ -9,4 +9,4 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. from .config import Yuuki_Config from .yuuki import Yuuki -__all__ = ['connection', 'data', 'data_mds', 'thread_control', 'Yuuki', 'Yuuki_Config'] +__all__ = ['connector.py', 'data', 'mds.py', 'thread.py', 'Yuuki', 'Yuuki_Config'] diff --git a/libs/connection.py b/libs/connector.py similarity index 100% rename from libs/connection.py rename to libs/connector.py diff --git a/libs/data.py b/libs/data.py index a89de18..8a9a30a 100644 --- a/libs/data.py +++ b/libs/data.py @@ -14,9 +14,9 @@ import time from tornado.httpclient import HTTPClient, HTTPRequest from yuuki_core.ttypes import OpType -from .data_mds import PythonMDS -from .thread_control import Yuuki_Multiprocess -from .thread_control import Yuuki_Thread +from .mds import PythonMDS +from .thread import Yuuki_Multiprocess +from .thread import Yuuki_Thread class Yuuki_Data: diff --git a/libs/events/callback.py b/libs/events/callback.py index 55100fe..d843d63 100644 --- a/libs/events/callback.py +++ b/libs/events/callback.py @@ -10,7 +10,7 @@ import time from yuuki_core.ttypes import ContentType -from ..tools import Yuuki_DynamicTools +from ..utils import Yuuki_DynamicTools class Yuuki_Callback: diff --git a/libs/events/command.py b/libs/events/command.py index c767c10..05c709f 100644 --- a/libs/events/command.py +++ b/libs/events/command.py @@ -12,7 +12,7 @@ import time from yuuki_core.ttypes import MIDType, ContentType, OpType -from ..tools import Yuuki_StaticTools, Yuuki_DynamicTools +from ..utils import Yuuki_StaticTools, Yuuki_DynamicTools class Yuuki_Command: diff --git a/libs/events/join_group.py b/libs/events/join_group.py index 16269bc..b93d149 100644 --- a/libs/events/join_group.py +++ b/libs/events/join_group.py @@ -7,7 +7,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ -from ..tools import Yuuki_StaticTools, Yuuki_DynamicTools +from ..utils import Yuuki_StaticTools, Yuuki_DynamicTools class Yuuki_JoinGroup: diff --git a/libs/events/security.py b/libs/events/security.py index f537cb7..ac2c9a1 100644 --- a/libs/events/security.py +++ b/libs/events/security.py @@ -9,7 +9,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. from yuuki_core.ttypes import OpType -from ..tools import Yuuki_StaticTools, Yuuki_DynamicTools +from ..utils import Yuuki_StaticTools, Yuuki_DynamicTools def security_access_checker(function): diff --git a/libs/data_mds.py b/libs/mds.py similarity index 100% rename from libs/data_mds.py rename to libs/mds.py diff --git a/libs/poll.py b/libs/polling.py similarity index 98% rename from libs/poll.py rename to libs/polling.py index 3c41a92..0cfe1eb 100644 --- a/libs/poll.py +++ b/libs/polling.py @@ -11,7 +11,7 @@ import time from yuuki_core.ttypes import Operation -from .tools import Yuuki_StaticTools, Yuuki_DynamicTools +from .utils import Yuuki_StaticTools, Yuuki_DynamicTools class Yuuki_Poll: diff --git a/libs/thread_control.py b/libs/thread.py similarity index 100% rename from libs/thread_control.py rename to libs/thread.py diff --git a/libs/tools.py b/libs/utils.py similarity index 100% rename from libs/tools.py rename to libs/utils.py diff --git a/libs/webadmin/server.py b/libs/webadmin/server.py index e842a34..880be8b 100644 --- a/libs/webadmin/server.py +++ b/libs/webadmin/server.py @@ -18,7 +18,7 @@ from flask_bootstrap import Bootstrap from gevent.pywsgi import WSGIServer from .reader import Yuuki_WebDataReader -from ..tools import Yuuki_DynamicTools +from ..utils import Yuuki_DynamicTools wa_app = Flask(__name__) diff --git a/libs/webadmin/static/js/main.js b/libs/webadmin/static/js/index.js similarity index 100% rename from libs/webadmin/static/js/main.js rename to libs/webadmin/static/js/index.js diff --git a/libs/webadmin/templates/index.html b/libs/webadmin/templates/index.html index aab50a7..db64626 100644 --- a/libs/webadmin/templates/index.html +++ b/libs/webadmin/templates/index.html @@ -41,7 +41,7 @@ {{ bootstrap.load_js() }} - + \ No newline at end of file diff --git a/libs/yuuki.py b/libs/yuuki.py index 67a5ba7..73e1adb 100644 --- a/libs/yuuki.py +++ b/libs/yuuki.py @@ -15,12 +15,12 @@ import time from git import Repo from yuuki_core.ttypes import OpType -from .connection import Yuuki_Connect +from .connector import Yuuki_Connect from .data import Yuuki_Data from .events import Yuuki_Command, Yuuki_JoinGroup, Yuuki_Security, Yuuki_Callback from .i18n import Yuuki_LangSetting -from .poll import Yuuki_Poll -from .thread_control import Yuuki_Multiprocess +from .polling import Yuuki_Poll +from .thread import Yuuki_Multiprocess from .webadmin.server import Yuuki_WebAdmin