wechat-bot-padlocal icon indicating copy to clipboard operation
wechat-bot-padlocal copied to clipboard

Shielding users

Open DragonDescendants opened this issue 3 years ago • 2 comments

After the main user sends a message to the wechat robot to set up the blocking of users, the robot will be disabled if it restarts.

DragonDescendants avatar Mar 18 '22 08:03 DragonDescendants

OK, I see what you mean. You mean that the contacts shielded by the shielding command will fail after the robot restarts, right?

This problem can be solved by manually modifying the config.js.

As for the requirement of persisting the data in memory into files, I have written down this requirement, and the subsequent versions will be optimized.:bulb:

sun2ot avatar Mar 18 '22 08:03 sun2ot

In the latest version, the shield list in memory can be persisted to the local JSON file.

The add/delete method is the same as before. And you can use the command 持久化屏蔽 to modify the local file.

sun2ot avatar Mar 29 '22 16:03 sun2ot