{"body":"method add-badword($guild-id, *@words) {\n    for @words { %!badwords{$guild-id}{~$_} = True }\n    $!redis.sadd(badwords-redis-key($guild-id), @words);\n    return content => \"The following terms were added to the chatfilter: `@words.join(\"`, `\")`.\";\n}\n\nmethod remove-badword($guild-id, *@words) {\n    my @removed = %!badwords{$guild-id}{@words}:delete:k;\n    $!redis.srem(badwords-redis-key($guild-id), @words);\n    return content => \"The following terms were removed from the chatfilter: `@removed.join(\"`, `\")`.\";\n}","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/2nQJPMoX","modified":1599312900,"id":"2nQJPMoX","size":516,"lines":11,"own_paste":false,"theme":"","date":1599312900}