<?php
namespace App\Services\Moderation;

class ModerationBot
{
    public function __construct(private array $config)
    {
    }

    public function scanLink(string $url): array
    {
        return (new LinkScanner($this->config['trusted_domains']))->scan($url);
    }

    public function scanText(string $text): array
    {
        return (new WordFilter())->scan($text);
    }
}
