]> ruin.nu Git - NDIRC.git/blobdiff - Delling.pm
Add dm replies for commands on discord
[NDIRC.git] / Delling.pm
index 545df2fdc8aeaab7b886ac415422ad42ff4882da..bed84f4bf3843cf3c3e2a2450aeab82603aee99a 100644 (file)
@@ -220,8 +220,7 @@ after _start => sub {
 };
 
 after discord_message_create => sub {
-       my $self = shift;
-       my $hash = shift;
+       my ($self, $gw, $hash) = @_;
 
        my $author = $hash->{author};
        my $msg = $hash->{content};
@@ -240,6 +239,7 @@ after discord_message_create => sub {
        my $c = NDIRC::DiscordContext->new({
                        discord_id => $author_name,
                        channel_id => $channel_id,
+                       author_id => $author_id,
                        channel => $channel,
                        disp => $self->disp,
                        model => DB(),