mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 06:23:43 +08:00
e3a0faefc5
This enables the following in Discourse AI ``` plugin.register_modifier(:chat_allowed_bot_user_ids) do |user_ids, guardian| if guardian.user mentionables = AiPersona.mentionables(user: guardian.user) allowed_bot_ids = mentionables.map { |mentionable| mentionable[:user_id] } user_ids.concat(allowed_bot_ids) end user_ids end ``` some bots that are id < 0 need to be discoverable in search otherwise people can not talk to them. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com> |
||
---|---|---|
.. | ||
app | ||
assets | ||
config | ||
db | ||
lib | ||
public | ||
spec | ||
test/javascripts | ||
plugin.rb | ||
README.md |
This plugin is still in active development and may change frequently
Documentation
The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.
For user documentation, see Discourse Chat.
For developer documentation, see Discourse Documentation.