Hello,
I want to add a broadcast to the Smart ChatBot response from Rustcord players, but I couldn't find the hook to enable this.
Can you help me ?
Thank you.
//SmartChatBot
private void OnSmartChatBot(BasePlayer player, string message, string answer)
{
_settings.Channels.Where(x => x.perms.Contains("plugin_smartchatbot")).ToList().ForEach(ch =>
{
GetChannel(_client, ch.Channelid, chan =>
{
chan.CreateMessage(_client, Translate("PLUGIN_OnSmartChatBotMessage", new Dictionary<string, string>
{
{ "realtime", DateTime.Now.ToShortTimeString() },
{ "botmessage", answer }
}));
});
});
}