airencracken/stallmanbot — comment on commit e143dd2e90179ef57ba0d37bba3fb59e639a0cbe
File:  line 0
By ryands:

one suggestion i have is that it seems you keep ascii/pasta in memory... why not make a "dump_file" sub that reads+dumps? since its rate throttled anyway, having to read it from disk each dump isn't a huge penalty and will cut down on the bot's memory footprint.

sub dump_ascii {
my ($file) = @_;
open(F, "<".$file);
while() print $irc $_;
}

or whatever you do to print/dump text to a channel. Then in your command handling, just do if(/reason to interject/) dump_file("interject.txt");