From 540ead63c2987831cae4e23bf186dbbdd549736c Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sun, 26 Apr 2020 00:02:45 +0100 Subject: [PATCH] adds self IM support (used so it can be hooked onto) --- Core/bottypes/CommandsBot.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/bottypes/CommandsBot.cs b/Core/bottypes/CommandsBot.cs index f722530..beca6d0 100644 --- a/Core/bottypes/CommandsBot.cs +++ b/Core/bottypes/CommandsBot.cs @@ -39,6 +39,10 @@ namespace BSB.bottypes } return commands.ToArray(); } + public virtual void sendIM(UUID avatar,string message) + { + Client.Self.InstantMessage(avatar, message); + } public Commands.CoreCommandsInterface GetCommandsInterface { get { return CommandsInterface; } } protected Commands.CoreCommandsInterface CommandsInterface;