Skip to content

Commit

Permalink
Update bot.php
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Nov 25, 2023
1 parent 7a90067 commit 6046830
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,14 @@
],
),
);
// Write server settings, channel IDs, and role IDs to a single JSON file
$options['welcome_message'] = "Welcome to the Civ13 Discord Server! Please read the rules and verify your account using the `{$options['command_symbol']} approveme` chat command. Failure to verify in a timely manner will result in an automatic removal from the server.";
foreach (['а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я', 'і', 'ї', 'є'] as $char) { // // Ban use of Cyrillic characters
$options['ooc_badwords'][] = ['word' => $char, 'duration' => '999 years', 'reason' => 'только английский.', 'category' => 'language', 'method' => 'str_contains', 'warnings' => 2];
$options['ic_badwords'][] = ['word' => $char, 'duration' => '999 years', 'reason' => 'только английский.', 'category' => 'language', 'method' => 'str_contains', 'warnings' => 2];
}
if (include 'civ_token.php') $options['civ_token'] = $civ_token;

// Write editable configurations to a single JSON file
/*
$json = json_encode([
//'server_settings' => $options['server_settings'],
Expand Down Expand Up @@ -343,14 +349,6 @@
foreach ($loadedData as $key => $value) $options[$key] = $value;
*/

$options['welcome_message'] = "Welcome to the Civ13 Discord Server! Please read the rules and verify your account using the `{$options['command_symbol']} approveme` chat command. Failure to verify in a timely manner will result in an automatic removal from the server.";

foreach (['а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я', 'і', 'ї', 'є'] as $char) { // // Ban use of Cyrillic characters
$options['ooc_badwords'][] = ['word' => $char, 'duration' => '999 years', 'reason' => 'только английский.', 'category' => 'language', 'method' => 'str_contains', 'warnings' => 2];
$options['ic_badwords'][] = ['word' => $char, 'duration' => '999 years', 'reason' => 'только английский.', 'category' => 'language', 'method' => 'str_contains', 'warnings' => 2];
}

if (include 'civ_token.php') $options['civ_token'] = $civ_token;
$civ13 = new Civ13($options);
$global_error_handler = function (int $errno, string $errstr, ?string $errfile, ?int $errline) use ($civ13) {
if (
Expand Down

0 comments on commit 6046830

Please sign in to comment.