From 29c3c1cb68afd75fe683ebc66b25438fb8969d18 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 6 Jul 2021 12:46:51 -0700 Subject: [PATCH] Plugins/Wolfram: remove unnecessary comments --- Plugins/Wolfram.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Plugins/Wolfram.pm b/Plugins/Wolfram.pm index 4703bea8..e9b1c97a 100644 --- a/Plugins/Wolfram.pm +++ b/Plugins/Wolfram.pm @@ -14,29 +14,23 @@ use PBot::Imports; use LWP::UserAgent::Paranoid; use URI::Escape qw/uri_escape_utf8/; -# called when plugin is loaded sub initialize { my ($self, %conf) = @_; - # add default registry entry for `appid` + # add default registry entry for `wolfram.appid` $self->{pbot}->{registry}->add_default('text', 'wolfram', 'appid', ''); - # make `appid` registry entry private by default + # make `wolfram.appid` registry entry private by default $self->{pbot}->{registry}->set_default('wolfram', 'appid', 'private', 1); - # add `wolfram` bot command $self->{pbot}->{commands}->register(sub { $self->cmd_wolfram(@_) }, 'wolfram', 0); } -# called when plugin is unloaded sub unload { my ($self) = @_; - - # remove `wolfram` bot command $self->{pbot}->{commands}->unregister('wolfram'); } -# the `wolfram` bot command sub cmd_wolfram { my ($self, $context) = @_;