コミットを比較

..

3 コミット

作成者 SHA1 メッセージ 日付
n9k ed8ba4aacc Control socket: show emotes 2022-08-01 02:53:55 +00:00
n9k 51ff285067 Control socket: reload emotes 2022-08-01 02:53:55 +00:00
n9k b9c2d89a5a Control socket: rename method 'exit' -> 'quit' 2022-08-01 02:53:45 +00:00
2個のファイルの変更8行の追加8行の削除

ファイルの表示

@ -13,7 +13,7 @@ from anonstream.quart import Quart
from anonstream.utils.captcha import create_captcha_factory, create_captcha_signer
from anonstream.utils.user import generate_blank_allowedness
__version__ = '1.6.5'
__version__ = '1.6.4'
def create_app(toml_config):
app = Quart('anonstream', static_folder=None)

ファイルの表示

@ -4,19 +4,19 @@
from anonstream.control.spec.common import Str, End
from anonstream.control.exceptions import ControlSocketExit
async def cmd_exit():
async def cmd_quit():
raise ControlSocketExit
async def cmd_exit_help():
normal = ['exit', 'help']
async def cmd_quit_help():
normal = ['quit', 'help']
response = (
'Usage: exit\n'
'Usage: quit\n'
'Commands:\n'
' exit......close the connection\n'
' quit......close the connection\n'
)
return normal, response
SPEC = Str({
None: End(cmd_exit),
'help': End(cmd_exit_help),
None: End(cmd_quit),
'help': End(cmd_quit_help),
})