Format /delete actions

This commit is contained in:
Alex Thomassen 2023-11-24 00:08:05 +00:00
parent cd876b7035
commit 382daf45c2
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
3 changed files with 7 additions and 2 deletions

View File

@ -38,6 +38,10 @@ public function formatted() : string
return sprintf('/%s %s', $cmd, $duration); return sprintf('/%s %s', $cmd, $duration);
} }
if ($cmd === 'delete') {
return sprintf('/%s %s %s %s', $cmd, $this->targetName(), $this->message, $this->message_id);
}
/** /**
* Timeout/untimeout * Timeout/untimeout
*/ */

View File

@ -6,7 +6,7 @@
</x-slot> </x-slot>
<div class="py-12"> <div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> <div class="max-w-full mx-auto sm:px-6 lg:px-8">
<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg"> <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 text-gray-900 dark:text-gray-100"> <div class="p-6 text-gray-900 dark:text-gray-100">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
@ -16,7 +16,7 @@
<table class="table-auto w-full"> <table class="table-auto w-full">
<thead> <thead>
<tr> <tr>
<th class="px-4 py-2">When</th> <th class="px-4 py-2">Time &amp; date</th>
<th class="px-4 py-2">Command</th> <th class="px-4 py-2">Command</th>
<th class="px-4 py-2">Moderator</th> <th class="px-4 py-2">Moderator</th>
</tr> </tr>

View File

@ -38,6 +38,7 @@
<li>Different filtering options: Type of action (timeout, raid etc.), moderator (whodunit), user/viewer (next point).</li> <li>Different filtering options: Type of action (timeout, raid etc.), moderator (whodunit), user/viewer (next point).</li>
<li>Searching by text.</li> <li>Searching by text.</li>
<li>See related moderation actions, for example if a specific viewer has been timed out or banned multiple times.</li> <li>See related moderation actions, for example if a specific viewer has been timed out or banned multiple times.</li>
<li>Linking any affected viewer's to their Twitch viewer card.</li>
<li>Pagination, currently you can only see the latest 100 moderator actions.</li> <li>Pagination, currently you can only see the latest 100 moderator actions.</li>
<li>Automatic conversion to local time. Currently it's displayed in UTC.</li> <li>Automatic conversion to local time. Currently it's displayed in UTC.</li>
<li>Ability to see a viewer's chat messages at the time of action, alongside messages before/after to see context.</li> <li>Ability to see a viewer's chat messages at the time of action, alongside messages before/after to see context.</li>