|
@@ -104,7 +104,8 @@ handle_info({'DOWN', Ref, process, _, Reason},
|
|
|
?INFO
|
|
|
("relay goes down with reason ~p so does bot", [Reason]),
|
|
|
{stop, Reason, State};
|
|
|
-handle_info({send_message,M}, State) ->
|
|
|
+handle_info({send_message,M}, #state{uid = UId, bot = BPid} = State) ->
|
|
|
+ BPid ! M,
|
|
|
{noreply, State};
|
|
|
handle_info(Info, State) ->
|
|
|
{stop, {unrecognized_info, Info}, State}.
|