]> ruin.nu Git - NDIRC.git/blobdiff - DiscordContext.pm
Update for new Mojo::Discord compatibility
[NDIRC.git] / DiscordContext.pm
index 4418959c021878dff7b396bfd668ae1b95c52e4f..c6e4959a2343c2e700661dc33c8f5096da0f142e 100644 (file)
@@ -54,12 +54,13 @@ 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 replyId {
+       my $self = shift;
+       return "D-".$self->channel_id;
+}
 
 sub _build_uid {
        my ($self) = @_;