Ejemplo n.º 1
0
          <?php 
echo $templates->switchToggle('Allow Symbol Spam', 'doQuickCommand', '[\'chatmod symbolsallowed\']', '', array_key_exists('symbolsAllowed', $chatModSettings) && $chatModSettings['symbolsAllowed'] == 'true');
?>
        </div>
        <div class="spacer"></div>
        <div class="btn-toolbar">
          <?php 
echo $templates->switchToggle('Allow Repeating Character Chains', 'doQuickCommand', '[\'chatmod repeatcharallowed\']', '', array_key_exists('repeatCharAllowed', $chatModSettings) && $chatModSettings['repeatCharAllowed'] == 'true');
?>
        </div>
        <div class="spacer"></div>
        <div class="row">
          <div class="col-xs-6">
            <h4>Links:</h4>
            <?php 
echo $templates->botCommandForm('chatmod setlinkpermittime', 'Link Permit Timout', '[seconds]', array_key_exists('linkPermitTime', $chatModSettings) ? $chatModSettings['linkPermitTime'] : '');
?>
          </div>
          <div class="col-xs-6">
            <h4>Symbols & Grapheme Clusters:</h4>
            <?php 
echo $templates->botCommandForm('chatmod setsymbolstriggercount', 'Set Maximum Symbols per message', '[amount]', array_key_exists('symbolsTriggerCount', $chatModSettings) ? $chatModSettings['symbolsTriggerCount'] : '');
?>
          </div>
        </div>
        <div class="row">
          <div class="col-xs-6">
            <h4>Caps:</h4>
            <?php 
echo $templates->botCommandForm('chatmod setcapstriggerlength', 'Set Minimim Caps Before Checking', '[amount]', array_key_exists('capsTriggerLength', $chatModSettings) ? $chatModSettings['capsTriggerLength'] : '');
?>
?>
          </div>
          <div class="spacer"></div>
          <div class="btn-toolbar">
            <?php 
echo $templates->switchToggle('Enable Event/Error Logging', $templates->_wrapInJsToggledDoQuickCommand('log', array_key_exists('logenable', $botSettings) && $botSettings['logenable'] == '1' ? 'true' : 'false', 'enable', 'disable'), '[]', '', array_key_exists('logenable', $botSettings) && $botSettings['logenable'] == '1');
?>
            <?php 
echo $templates->switchToggle('Enable Chat Logging', $templates->_wrapInJsToggledDoQuickCommand('logchat', array_key_exists('logchat', $botSettings) && $botSettings['logchat'] == '1' ? 'true' : 'false', 'enable', 'disable'), '[]', '', array_key_exists('logchat', $botSettings) && $botSettings['logchat'] == '1');
?>
          </div>
          <div class="spacer"></div>
          <div class="row">
            <div class="col-sm-4">
              <?php 
echo $templates->botCommandForm('log days', 'Set log rotate days', '[days]', array_key_exists('logrotatedays', $botSettings) ? $botSettings['logrotatedays'] : '7', 'Set');
?>
            </div>
          </div>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->informationPanel('The bot is able to whisper any messages intended for a specific user to that user, instead of posting it in the chat.');
?>
        </div>
      </div>
      <hr/>
      <h4>Connector Settings</h4>

      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandButton('subscribecount', 'Current Subscriber Count');
?>
          <?php 
echo $templates->botCommandButton('subscribemode', 'Subscribe Mode');
?>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Subscriber Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('subscribemessage', 'Message on subscription', '[message]', array_key_exists('subscribemessage', $botSettings) ? $botSettings['subscribemessage'] : 'Thanks for the subscription (name)!');
?>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('subscribereward', 'Points reward on subscription', '[amount]', array_key_exists('subscribereward', $botSettings) ? $botSettings : '1000');
?>
          </div>
        </div>
      </div>
      <hr/>
      <?php 
echo $templates->dataTable('Current Subscribers', ['Uername'], $subscriberTableRows, true);
?>
Ejemplo n.º 4
0
\PBPanel\AppLoader::load();
$session = new \PBPanel\Util\PanelSession();
if (!$session->checkSessionToken(filter_input(INPUT_POST, 'token'))) {
    die('Invalid session token. Are you trying to hack me?!');
}
$dataStore = new \PBPanel\Util\DataStore();
$connection = new \PBPanel\Util\BotConnectionHandler($dataStore);
$functions = new \PBPanel\Util\Functions($dataStore, $connection);
$templates = new \PBPanel\Util\ComponentTemplates();
$botSettings = $functions->getIniArray('settings');
$pastRaiders = $functions->getIniArray('raiders');
$pastRaidersTableRows = '';
$doRaidCommandResponse = $functions->getIniValueByKey('command', 'doraid');
$firstTime = false;
$addCommandJsActive = $functions->getModuleStatus('addCommand.js');
$doRaidCommandForm = $templates->botCommandForm('doraid', 'Raid target', '[username]');
if ($addCommandJsActive == 1 && (!$doRaidCommandResponse || $doRaidCommandResponse == '')) {
    $connection->send('!addcom doraid Let\'s raid (1)! Go to http://twitch.tv/(1) and say "' . $dataStore->getVar('connector', 'channelOwner') . ' Raid!", throw them a follow and show the love! <3');
    $firstTime = true;
} elseif ($addCommandJsActive == '0') {
    $doRaidCommandForm = $templates->addTooltip($templates->botCommandForm('doraid', 'Raid target', '[username]', null, 'Send', true), 'Enable the addCommand.js module to use this form.' . $templates->botCommandButton('!module enable ./commands/addCommand.js', 'Enable addCommand.js Now', 'primary btn-block'));
}
foreach ($pastRaiders as $username => $timesRaided) {
    $pastRaidersTableRows .= '<tr><td>' . str_replace('_count', '', $username) . '</td><td>' . $timesRaided . ' raids</td></tr>';
}
?>
<div class="app-part">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">
        Raid System
Ejemplo n.º 5
0
         $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->botCommandForm($command, '', '!' . $command);
 } 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 {
Ejemplo n.º 6
0
?>
        <?php 
echo $templates->botCommandButton('roulette', 'Roulette');
?>
        <?php 
echo $templates->botCommandButton('slot', 'Slot Machine');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Adventure Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('adventure set jointime', 'Set Join Period (Seconds)', '[seconds]', array_key_exists('joinTime', $heistSettings) ? $heistSettings['joinTime'] : '');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('adventure set cooldown', 'Set Cool Down (Seconds)', '[seconds]', array_key_exists('coolDown', $heistSettings) ? $heistSettings['coolDown'] : '');
?>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('adventure set minbet', 'Set Minimum Entry Bet', '[points]', array_key_exists('minBet', $heistSettings) ? $heistSettings['minBet'] : '');
?>
          </div>
          <div class="col-sm-4">
Ejemplo n.º 7
0
    </div>
    <div class="panel-body">
      <div class="btn-group">
        <?php 
echo $templates->botCommandButton('hostcount', 'Current Host Count');
?>
        <?php 
echo $templates->botCommandButton('hostlist', 'Hoster List');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Hosts Settings</h4>

      <div class="collapsible-content">
        <?php 
echo $templates->botCommandForm('hostmessage', 'Message on host', '[message]', array_key_exists('hostmessage', $botSettings) ? $botSettings['hostmessage'] : '');
?>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('hostreward', 'Points reward on host', '[amount]', array_key_exists('hostreward', $botSettings) ? $botSettings['hostreward'] : '');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('hosttime', 'Host message cool down', '[minutes]', array_key_exists('hosttimeout', $botSettings) ? $botSettings['hosttimeout'] : '');
?>
          </div>
        </div>
      </div>
    </div>
Ejemplo n.º 8
0
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('./handlers/donationHandler.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <h4>Donation Event Settings</h4>

      <div class="btn-toolbar">
        <?php 
echo $templates->switchToggle('Enable Donation Alerts', 'doQuickCommand', '[\'donationalert toggle\']', '', array_key_exists('donation_toggle', $botSettings) && $botSettings['donation_toggle'] == '1');
?>
      </div>
      <div class="spacer"></div>
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('donationalert filepath', 'Donations File', '[filepath]', array_key_exists('checker_storepath', $botSettings) ? $botSettings['checker_storepath'] : '');
?>
        </div>
        <div class="col-sm-4">&nbsp;</div>
        <div class="col-sm-4">
          <?php 
echo $templates->informationPanel('Set a new file path for the donation text file.<br />This is useful when you have another program that produces an output file, you can point the bot towards it and have it send a message to the chat when there are changes.');
?>
        </div>
      </div>
    </div>
  </div>
</div>
Ejemplo n.º 9
0
    <div class="panel-body">
      <div class="btn-group">
        <?php 
echo $templates->botCommandButton('bet start', 'Start Default Bet');
?>
        <?php 
echo $templates->botCommandButton('bet results', 'Latest Bet Results');
?>
      </div>
      <hr/>
      <h4>Custom Bet</h4>

      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('bet start', 'Start Custom bet', '[option] [option2] [option3] [option4]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('bet min', 'Start minimum bet', '[amount]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('bet max', 'Set maximum bet', '[amount]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('bet time', 'Set join time', '[seconds]');
Ejemplo n.º 10
0
      <div class="btn-toolbar">
        <?php 
echo $templates->botCommandButton('roll', 'Make A Roll');
?>
        <?php 
echo $templates->switchToggle('Toggle Cool Down', 'doQuickCommand', '[\'roll wait\']', null, array_key_exists('roll_wait', $rollSettings) && filter_var($rollSettings['roll_wait'], FILTER_VALIDATE_BOOLEAN));
?>
        <?php 
echo $templates->switchToggle('Toggle Stream-Online-Only', 'doQuickCommand', '[\'roll stream\']', null, array_key_exists('roll_stream', $rollSettings) && filter_var($rollSettings['roll_stream'], FILTER_VALIDATE_BOOLEAN));
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Roll Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('roll time', 'Set Roll Cool Down', '[seconds]', array_key_exists('roll_timer', $rollSettings) ? $rollSettings['roll_timer'] : '30');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('roll bonus', 'Set Roll Doubles Multiplier', '[amount]', array_key_exists('roll_bonus', $rollSettings) ? $rollSettings['roll_bonus'] : '2');
?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
Ejemplo n.º 11
0
        <?php 
echo $templates->botCommandButton('clear', 'Clear Chat', 'default btn-sm');
?>
        <?php 
echo $templates->switchToggle('Mute bot', 'doQuickCommand', '[\'mute\']', null, array_key_exists('response_@chat', $botSettings) && $botSettings['response_@chat'] == 'false', true);
?>
        <?php 
echo $templates->botCommandButton('d !exit', 'Shutdown ' . $dataStore->getVar('connector', 'botName'), 'danger btn-sm');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Edit Stream Title &amp; Game</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-8">
            <?php 
echo $templates->botCommandForm('title', 'Title', 'title', array_key_exists('title', $botStreamInfo) ? $botStreamInfo['title'] : '');
?>
          </div>
          <div class="col-sm-8">
            <?php 
echo $templates->botCommandForm('game', 'Game', 'game', array_key_exists('game', $botStreamInfo) ? $botStreamInfo['game'] : '');
?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
Ejemplo n.º 12
0
      <div class="btn-group">
        <?php 
echo $templates->botCommandButton('marathon', 'Current Marathon');
?>
        <?php 
echo $templates->botCommandButton('marathon clear', 'Clear Marathons');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Current Marathon</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('marathon name', 'Change marathon name', '[name]');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('marathon link', 'Change marathon link', '[url]');
?>
          </div>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Schedule Marathon</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
Ejemplo n.º 13
0
?>
        <?php 
echo $templates->switchToggle('Mute Bot', $templates->_wrapInJsToggledDoQuickCommand('response', array_key_exists('response_@all', $botSettings) && $botSettings['response_@all'] == 0 ? 'true' : 'false', 'enable', 'disable'), '[]', '', array_key_exists('response_@all', $botSettings) && $botSettings['response_@all'] == 0, true);
?>
        <?php 
echo $templates->botCommandButton('d !exit', 'Shutdown ' . $dataStore->getVar('connector', 'botName'), 'danger btn-sm');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Edit Stream Title &amp; Game</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-8">
            <?php 
echo $templates->botCommandForm('title', 'Title', 'title', array_key_exists('title', $botStreamInfo) ? $botStreamInfo['title'] : '');
?>
          </div>
          <div class="col-sm-8">
            <?php 
echo $templates->botCommandForm('game', 'Game', 'game', array_key_exists('game', $botStreamInfo) ? $botStreamInfo['game'] : '');
?>
          </div>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Bot Voice</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-8">
Ejemplo n.º 14
0
</h4>
      <h4>
        <small>Current Average:</small> <?php 
echo number_format(round($totalPoints / count($points))) . $pointsName;
?>
</h4>
      <hr/>
      <h4 class="collapsible-master">Transactions</h4>

      <div class="collapsible-content">
        <p>Deposit, withdraw or set the amount of points for viewers</p>

        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('points all', 'Send an amount of points to everyone', '[amount]');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('makeitrain', 'Divide an amount of points randomly over current viewers', '[amount]');
?>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('points add', 'Send an amount of points to viewer', '[username] [amount]');
?>
          </div>
          <div class="col-sm-4">
Ejemplo n.º 15
0
?>
        </div>
        <div class="col-sm-4 col-sm-offset-4">
          <?php 
echo $templates->informationPanel('Toggle permissions for time changing commands for Mods.<br/><b>Red means Admin-only!</b>');
?>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Time Control</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('time', 'Check viewer time');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('time set', 'Set viewer time', '[username] [seconds]');
?>
          </div>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Promotions from Time</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
Ejemplo n.º 16
0
      <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 
echo $templates->botCommandForm('commandtimer setreqmsgs', 'Set Minimum Chat Message Count', '[amount]', array_key_exists('reqMsgs', $commandTimerSettings) ? $commandTimerSettings['reqMsgs'] : 10);
?>
          </div>
        </div>
      </div>
      <hr/>
      <?php 
echo $templates->dataTable('Current Commands In Command Timer <span class="text-muted">(' . count($commandTimerCommands) . ')</span>', ['command', 'Remove'], $commandTimerCommandsDataRows, true);
?>
    </div>
  </div>
Ejemplo n.º 17
0
echo $templates->toggleFavoriteButton();
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('hostHandler.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <div class="btn-group">
        <?php 
echo $templates->botCommandButton('hostcount', 'Current Host Count');
?>
        <?php 
echo $templates->botCommandButton('hostlist', 'Hoster List');
?>
      </div>
      <hr/>
      <h4>Hosts Settings</h4>

      <div>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('hostreward', 'Points reward on host', '[amount]', array_key_exists('hostReward', $botSettings) ? $botSettings['hostReward'] : '200');
?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
Ejemplo n.º 18
0
          </div>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->informationPanel('<p>Win points by hitting 3 of the same emotes in a row!</p>Emote 1 is most likely to triple while emote 7 is least likely to!');
?>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">General Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('slot time', 'Set Slot Cool Down', '[seconds]', array_key_exists('slotTimer', $slotMachineSettings) ? $slotMachineSettings['slotTimer'] : '0');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('slot bonus', 'Set Slot Bonus', '[amount]', array_key_exists('slotBonus', $slotMachineSettings) ? $slotMachineSettings['slotBonus'] : '1');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('slot jackpot', 'Set Slot Jackpot', '[amount]', array_key_exists('slotJackpot', $slotMachineSettings) ? $slotMachineSettings['slotJackpot'] : '300');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('pricecom !slot', 'Set Slot Cost', '[amount]', array_key_exists('slot', $priceComSettings) ? $priceComSettings['slot'] : '');
Ejemplo n.º 19
0
echo $templates->moduleActiveIndicator($functions->getModuleStatus('customCommands.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <?php 
echo $templates->botCommandFormV2('', 'Run Command', ['placeholder' => '[command] [params]', 'noReload' => true, 'autoComplete' => 'all']);
?>
      <hr/>
      <h4 class="collapsible-master">Command Creation</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-6">
            <?php 
echo $templates->botCommandForm('addcom', 'Add command', '[command] [message]');
?>
          </div>
          <div class="col-sm-6">
            <div class="toggled-notice panel panel-default">
              <div class="panel-heading">
                <h4 class="panel-title">Command Creation Tags</h4>
              </div>
              <div class="panel-body">
                <ul>
                  <li>(...) - All arguments given to the command</li>
                  <li>(sender) - Resolved username WITH rank/title</li>
                  <li>(baresender) - Resolved username</li>
                  <li>(random) - A random viewer, currently in the chat</li>
                  <li>(pointsname) - The plural points name</li>
                </ul>
Ejemplo n.º 20
0
        Poll System
        <?php 
echo $templates->toggleFavoriteButton();
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('pollSystem.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <h4>Start A New Vote</h4>

      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('poll open', 'Start a normal poll', '[option1] [option2]');
?>
          <div class="form-group">
            <?php 
echo $templates->botCommandButton('poll close', 'End Current Poll');
?>
          </div>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('poll open -t', 'Start a timed poll', '[seconds] [option1] [option2]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->informationPanel('To vote type <b>!vote "option"</b> in chat.');
Ejemplo n.º 21
0
        <?php 
echo $templates->toggleFavoriteButton();
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('permissions.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <h4 class="collapsible-master">Group settings per viewer</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('group set', 'Set viewers group', '[username] [groupname]');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('group', 'Get group level');
?>
          </div>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Group Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
Ejemplo n.º 22
0
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('greetingSystem.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <?php 
echo $templates->switchToggle('Toggle Auto-Greeting', 'doQuickCommand', '[\'greeting toggle\']', null, array_key_exists('autogreet', $greetingSettings) && filter_var($greetingSettings['autogreet'], FILTER_VALIDATE_BOOLEAN));
?>
      <hr/>
      <h4>Greeting Message</h4>

      <div class="row">
        <div class="col-sm-6">
          <?php 
echo $templates->botCommandForm('greeting set default', 'Set global greeting message', '[message]', array_key_exists('_default', $greetingSettings) ? $greetingSettings['_default'] : '');
?>
        </div>
        <div class="col-sm-4 col-sm-offset-2">
          <?php 
echo $templates->informationPanel('Users can set their own greeting using "!greeting set &lt;message&gt;". Then enable/disable the greeting by using "!greeting &lt;enable/disable&gt;".');
?>
        </div>
      </div>
      <hr/>
      <?php 
echo $templates->dataTable('User Greetings', ['Username', 'Greeting'], $userGreetingRows, true);
?>
    </div>
  </div>
</div>
Ejemplo n.º 23
0
    <div class="panel-heading">
      <h3 class="panel-title">
        Quote System
        <?php 
echo $templates->toggleFavoriteButton();
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('quoteCommand.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('quote', 'Summon quote', '[#id]');
?>
        </div>
      </div>
      <hr/>
      <h4>Quote Settings</h4>

      <div class="row">
        <div class="col-sm-8">
          <?php 
echo $templates->botCommandForm('addquote', 'Add quote', '[message]');
?>
        </div>
        <div class="col-sm-8">
          <?php 
echo $templates->botCommandForm('editquote', 'Edit quote', '#[id] [message]');
Ejemplo n.º 24
0
    <div class="panel-body">
      <h4>Channel Notices</h4>

      <div class="form-group">
        <div class="btn-toolbar">
          <div class="btn-group">
            <?php 
echo $templates->switchToggle('Toggle Notices', 'doQuickCommand', '[\'notice toggle\']', null, array_key_exists('notices_toggle', $noticeSettings) ? filter_var($noticeSettings['notices_toggle'], FILTER_VALIDATE_BOOLEAN) : true);
?>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-8">
          <?php 
echo $templates->botCommandForm('addnotice', 'Add notice', '[message]');
?>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('delnotice', 'Delete notice', '[#id]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('notice get', 'Announce Notice', '[#id]');
?>
        </div>
      </div>
Ejemplo n.º 25
0
      </p>
      <ul>
        <li>"<span class="text-success"><span class="fa fa-check-circle"></span> Module Activated</span>" - Module is active
        </li>
        <li>"<span class="text-danger"><span class="fa fa-exclamation-circle"></span> Module Inactive</span>" - Module is inactive
        </li>
      </ul>');
?>
      <hr/>
      <h4 class="collapsible-master">Manually Enable/Disable Modules</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('module enable ', 'Enable module', '[./path/to/script.js]');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('module disable ', 'Enable module', '[./path/to/script.js]');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->informationPanel('<p>
          &quot;./path/to/script.js&quot; is the path relative to the "scripts/" directory.<br/>
          E.g. &quot;./commands/addCommand.js&quot;
        </p>');
?>
          </div>
Ejemplo n.º 26
0
?>
        <?php 
echo $templates->botCommandButton('stealsong', 'Steal Song');
?>
        <?php 
echo $templates->botCommandButton('reloadplaylist', 'Reload "playlist.txt"');
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Player Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('musicplayer limit', 'Request Limit per viewer', '[amount]', array_key_exists('song_limit', $botSettings) ? $botSettings['song_limit'] : '', 'Limit');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('pricecom addsong', '!addsong price', '[amount]', $functions->getIniValueByKey('pricecom', 'addsong'), 'Set');
?>
          </div>
        </div>
      </div>
      <hr/>
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('addsong', 'Add song to the queue', '[youtube url]', null, 'Add');
?>
Ejemplo n.º 27
0
      <div class="btn-toolbar">
        <?php 
echo $templates->botCommandButton('bankheist start', 'Start Bank Heist');
?>
        <?php 
echo $templates->switchToggle('Toggle Bankheist', 'doQuickCommand', '[\'bankheist toggle\']', '', array_key_exists('bankheistToggle', $botSettings) ? filter_var($botSettings['bankheistToggle'], FILTER_VALIDATE_BOOLEAN) : false);
?>
      </div>
      <hr/>
      <h4 class="collapsible-master">Session Settings</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('bankheist signupminutes', 'Sign up time', '[minutes]', array_key_exists('signupMinutes', $bankHeistTimers) ? $bankHeistTimers['signupMinutes'] : '1');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('bankheist heistminutes', 'Session Length', '[minutes]', array_key_exists('heistMinutes', $bankHeistTimers) ? $bankHeistTimers['heistMinutes'] : '30');
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('bankheist maxbet', 'Maximum Bet', '[minutes]', array_key_exists('bankheistmaxbet', $botSettings) ? $botSettings['bankheistmaxbet'] : '1000');
?>
          </div>
        </div>
      </div>
      <hr/>
Ejemplo n.º 28
0
        <?php 
echo $templates->botCommandButton('clear', 'Clear The Chat');
?>
      </div>
      <div class="spacer"></div>
      <div class="row">
        <div class="col-sm-8">
          <?php 
echo $templates->combinedBotCommandForm('', ['permit' => 'Permit', 'purge' => 'Purge', 'timeout' => 'Timeout', 'ban' => 'Ban', 'unban' => 'Unban'], 'Moderate (Choose Option)', '[username]');
?>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('autopurge', 'Purge on phrase', '[phrase]');
?>
        </div>
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('autoban', 'Ban on phrase', '[phrase]');
?>
        </div>
      </div>
      <hr/>
      <h4 class="collapsible-master">Warning Types &amp; Messages</h4>

      <div class="collapsible-content">
        <div class="row">
          <div class="col-sm-4">
            <?php 
Ejemplo n.º 29
0
        <div class="btn-toolbar">
          <?php 
echo $templates->switchToggle('Toggle Song Requests', 'doQuickCommand', '[\'togglerequests\']', '', array_key_exists('requestsEnabled', $youtubePlayerSettings) && $youtubePlayerSettings['requestsEnabled'] == 'true');
?>
          <?php 
echo $templates->switchToggle('Toggle Chat Notifications', 'doQuickCommand', '[\'musicplayer togglenotify\']', '', array_key_exists('updatesInChat', $youtubePlayerSettings) && $youtubePlayerSettings['updatesInChat'] == 'true');
?>
          <?php 
echo $templates->botCommandButton('musicplayer reload', 'Reload Default Playlist');
?>
        </div>
        <div class="spacer"></div>
        <div class="row">
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('musicplayer limit', 'Set Song Request Limit Per User', '[amount]', array_key_exists('requestLimit', $youtubePlayerSettings) ? $youtubePlayerSettings['requestLimit'] : 3);
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('musicplayer maxvideolength', 'Set max video length', '[minutes]', array_key_exists('maxVideoLength', $youtubePlayerSettings) ? $youtubePlayerSettings['maxVideoLength'] / 60000.0 : 8);
?>
          </div>
          <div class="col-sm-4">
            <?php 
echo $templates->botCommandForm('addsong', 'Request A Song', '[youtube link]');
?>
          </div>
        </div>
      </div>
      <hr/>
Ejemplo n.º 30
0
    <div class="panel-heading">
      <h3 class="panel-title">
        Bidding System
        <?php 
echo $templates->toggleFavoriteButton();
?>
        <?php 
echo $templates->moduleActiveIndicator($functions->getModuleStatus('bidSystem.js'));
?>
      </h3>
    </div>
    <div class="panel-body">
      <div class="row">
        <div class="col-sm-4">
          <?php 
echo $templates->botCommandForm('!bid start', 'Start a new bid', '[amount] [increment amount]');
?>
        </div>
        <div class="col-sm-8">
          <div class="spacer"></div>
          <div class="btn-group">
            <?php 
echo $templates->botCommandButton('bid warn', 'Warn About End Current Bidding');
?>
            <?php 
echo $templates->botCommandButton('bid end', 'End Current Bidding');
?>
          </div>
        </div>
      </div>
    </div>