MCPcopy Create free account
hub / github.com/Tyaoo/picker / kill_server

Method kill_server

bot.py:229–231  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

227
228 @classmethod
229 def kill_server(cls):
230 pid_path = cls.cqhttp_path.joinpath('go-cqhttp.pid')
231 subprocess.run(f'cat {pid_path} | xargs kill', stderr=subprocess.DEVNULL, shell=True)
232
233
234class mailBot:

Callers 1

start_serverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected