After installation, please follow the instructions below before enabling the plugin
Before enabling this plugin, you need to create an account to be used as a “User Assistant bot”. Although this plugin can automatically create bot user or use existing @Discobot, I don’t recommend doing that, because the bot users created by the plugin cannot be modified in the admin panel. You can grant it any permission you want, because in fact, the relevant code is specially written to make the bot always act as Admin, but I suggest that it is best to grant it Admin or moderator permissions. During development, sometimes unknown bugs that I cannot reproduce stably are caused due to this reason.
Then, you need to create a topic, which can be a private message or a public topic. Fill in its topic_id to SiteSetting.topic_op_admin_logger_topic. If topic_op_admin_enable_topic_log is turned on, the above bot will create more detailed log posts within the topic.
After creating the user assistant robot, write down its user id, and then fill it in SiteSetting.topic_op_admin_bot_user_id above.
Opening certain settings without following the above steps correctly can cause errors or even break your website
Plugins are code that runs alongside Discourse. It is not a problem for the bot to have any permissions, from Admin to TL0, because in fact it is just an object of code operations, and it has unlimited permissions.
In fact I have now finished developing this part of the plugin. But I’d be wary of publishing this plugin to plugin given the more catastrophic consequences if a plugin (rather than theme component) goes wrong.
I will release it officially after the plugin is launched on my forum and after a period of verification.
@Lhc_fl this looks super useful, but does it allow the OP to post on their own topic while it is closed, like a moderator or admin could? To us that seems like a much better flow than making them unlock it, post, and then re-lock it.