X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=DiscordContext.pm;h=c6e4959a2343c2e700661dc33c8f5096da0f142e;hb=468a4e3e07c0d9e6ed66a75c73f0d7ff2921b90a;hp=4418959c021878dff7b396bfd668ae1b95c52e4f;hpb=bd6624a4e56ad6968b57b76786ebd8787433ead4;p=NDIRC.git diff --git a/DiscordContext.pm b/DiscordContext.pm index 4418959..c6e4959 100644 --- a/DiscordContext.pm +++ b/DiscordContext.pm @@ -54,12 +54,13 @@ sub reply { sub message { my ($self, $target, $msg) = @_; - $msg =~ s`(.*?)`**$1**`gi; - $msg =~ s`(.*?)`*$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) = @_;