]> ruin.nu Git - NDIRC.git/blobdiff - DiscordContext.pm
Bot message sending restructure
[NDIRC.git] / DiscordContext.pm
index 4418959c021878dff7b396bfd668ae1b95c52e4f..8de77c09c17cc2ff37052d3959c3b2686dbf6802 100644 (file)
@@ -54,13 +54,9 @@ sub reply {
 sub message {
        my ($self, $target, $msg) = @_;
 
-       $msg =~ s`<b>(.*?)</b>`**$1**`gi;
-       $msg =~ s`<c(\d+)>(.*?)</c>`*$2*`gi;
-
-       $self->discord->send_message($target, $msg ); # Send the response.
+       $self->bot->discordMessage($target, $msg ); # Send the response.
 }
 
-
 sub _build_uid {
        my ($self) = @_;