$msgClass = 'me'; } else { $msgClass = 'whisper'; } } else { $msgClass = ''; } if (array_key_exists($command, $commandPermIni)) { $perm = $groups[getGroupId($commandPermIni[$command])]; } elseif (array_key_exists($command . '_recursive', $commandPermIni)) { $perm = $groups[getGroupId($commandPermIni[$command . '_recursive'])] . '+'; } else { $perm = 'Viewer'; } if (preg_match('/\\([0-9]\\)|\\([.]{3}\\)/i', $message)) { $actor = $templates->botCommandFormV2($command, '', ['placeholder' => '!' . $command, 'autoComplete' => 'user']); } else { $actor = $templates->botCommandButton($command, '!' . $command, 'default btn-block'); } if (array_key_exists($command, $commandPriceIni)) { if (intval($commandPriceIni[$command]) < 1 || intval($commandPriceIni[$command]) > 1) { $price = $commandPriceIni[$command] . ' ' . $pointNames[0]; } else { $price = $commandPriceIni[$command] . ' ' . $pointNames[1]; } } else { $price = '0 ' . $pointNames[0]; } if (array_key_exists($command, $commandCooldown)) { $cooldown = $functions->secondsToTime(intval($commandCooldown[$command])); } else {
<div class="panel-heading"> <h3 class="panel-title"> Raids <?php echo $templates->toggleFavoriteButton(); ?> <?php echo $templates->moduleActiveIndicator($functions->getModuleStatus('raidSystem.js')); ?> </h3> </div> <div class="panel-body"> <div class="row"> <div class="col-sm-4"> <?php echo $templates->botCommandFormV2('raid', 'Throw a raid!', ['autoComplete' => 'user']); ?> </div> <div class="col-sm-4"> <?php echo $templates->botCommandFormV2('raider', 'Record an incomming raid!', ['autoComplete' => 'user']); ?> </div> </div> <hr/> <div class="row"> <div class="col-xs-6"> <?php echo $templates->dataTable('Past Outgoing Raids', ['Username', 'Count'], $outgoingRaidsDataRows); ?> </div>
<div class="panel-heading"> <h3 class="panel-title"> Command Cooldown <?php echo $templates->toggleFavoriteButton(); ?> <?php echo $templates->moduleActiveIndicator($functions->getModuleStatus('commandCoolDown.js')); ?> </h3> </div> <div class="panel-body"> <div class="row"> <div class="col-sm-4"> <?php echo $templates->botCommandFormV2('cooldown', 'Set Command Cooldown', ['placeholder' => '[command] [seconds]', 'autoComplete' => 'command']); ?> </div> <div class="col-sm-4"> <div class="btn-toolbar"> <?php echo $templates->botCommandFormV2('clearcooldown', 'Clear All Cooldowns', ['placeholder' => '[command]', 'autoComplete' => 'command']); ?> </div> </div> </div> <hr/> <?php echo $templates->dataTable('Default Command Cooldowns', ['Command', 'Cooldown', 'Delete'], $commandCooldownsDataRows, true); ?> </div>
<div class="panel-body"> <div class="btn-toolbar"> <?php echo $templates->switchToggle('Toggle Command Timer', 'doQuickCommand', '[\'commandtimer toggle\']', null, array_key_exists('active', $commandTimerSettings) ? filter_var($commandTimerSettings['active'], FILTER_VALIDATE_BOOLEAN) : true); ?> <?php echo $templates->switchToggle('Toggle Randomizing', 'doQuickCommand', '[\'commandtimer togglerandom\']', null, array_key_exists('randomize', $commandTimerSettings) ? filter_var($commandTimerSettings['randomize'], FILTER_VALIDATE_BOOLEAN) : true); ?> </div> <hr/> <h4>Add Commands</h4> <div class="row"> <div class="col-sm-4"> <?php echo $templates->botCommandFormV2('addcommandtimer', 'Add command to command timer', ['placeholder' => '[command]', 'autoComplete' => 'command']); ?> </div> </div> <hr/> <h4 class="collapsible-master">Command Timer Settings</h4> <div class="collapsible-content"> <div class="row"> <div class="col-sm-4"> <?php echo $templates->botCommandForm('commandtimer settime', 'Set Command Interval', '[seconds]', array_key_exists('time', $commandTimerSettings) ? $commandTimerSettings['time'] : 600); ?> </div> <div class="col-sm-4"> <?php
</h3> </div> <div class="panel-body"> <div class="btn-toolbar"> <?php echo $templates->botCommandButton('quote', 'Get Random Quote'); ?> </div> <hr/> <h4 class="collapsible-master">Manage Quotes</h4> <div class="collapsible-content"> <div class="row"> <div class="col-sm-4"> <?php echo $templates->botCommandFormV2('addquote', 'Add a Quote', ['placeholder' => '[username] [quote...]', 'autoComplete' => 'user']); ?> </div> <div class="col-sm-4"> <?php echo $templates->botCommandForm('delquote', 'Delete a Quote', '[quoteId]'); ?> </div> </div> </div> <hr/> <?php echo $templates->dataTable('Current Quotes', ['id', 'Username', 'Text', 'Date'], $quotesDataRows); ?> </div> </div>