# Pastebin 2nQJPMoX method add-badword($guild-id, *@words) { for @words { %!badwords{$guild-id}{~$_} = True } $!redis.sadd(badwords-redis-key($guild-id), @words); return content => "The following terms were added to the chatfilter: `@words.join("`, `")`."; } method remove-badword($guild-id, *@words) { my @removed = %!badwords{$guild-id}{@words}:delete:k; $!redis.srem(badwords-redis-key($guild-id), @words); return content => "The following terms were removed from the chatfilter: `@removed.join("`, `")`."; }