]> git.localhorst.tv Git - alttp.git/blobdiff - app/Console/Commands/ChatlibDatabase.php
slightly improved message generation
[alttp.git] / app / Console / Commands / ChatlibDatabase.php
index 13c881a902a5589a8b31849c422dbf4259dbbf4a..cb7978f6e92bb84074c183354dc85f04766d1d36 100644 (file)
@@ -30,7 +30,8 @@ class ChatlibDatabase extends Command {
        public function handle() {
                $db = new ChatLib();
 
-               ChatLog::where('banned', '=', false)
+               ChatLog::where('type', '=', 'chat')
+                       ->where('banned', '=', false)
                        ->whereNotNull('evaluated_at')
                        ->chunk(500, function ($msgs) use ($db) {
                                foreach ($msgs as $msg) {