@@ -148,8 +148,9 @@ |
||
| 148 | 148 | |
| 149 | 149 | // Run the Tick plugins |
| 150 | 150 | $ws->loop->addPeriodicTimer(1, function () use ($pluginsT) { |
| 151 | - foreach ($pluginsT as $plugin) |
|
| 152 | - $plugin->tick(); |
|
| 151 | + foreach ($pluginsT as $plugin) { |
|
| 152 | + $plugin->tick(); |
|
| 153 | + } |
|
| 153 | 154 | }); |
| 154 | 155 | |
| 155 | 156 | // Mem cleanup every 30 minutes |
@@ -229,4 +229,4 @@ |
||
| 229 | 229 | { |
| 230 | 230 | } |
| 231 | 231 | } |
| 232 | - |
|
| 233 | 232 | \ No newline at end of file |
| 233 | + |
|
| 234 | 234 | \ No newline at end of file |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $allyID = $this->config["plugins"]["auth"]["allianceID"]; |
| 112 | 112 | $corpID = $this->config["plugins"]["auth"]["corpID"]; |
| 113 | 113 | $exempt = $this->config["plugins"]["auth"]["exempt"]; |
| 114 | - if(is_null($exempt)){ |
|
| 114 | + if (is_null($exempt)) { |
|
| 115 | 115 | $exempt = "0"; |
| 116 | 116 | } |
| 117 | 117 | $toDiscordChannel = $this->config["plugins"]["auth"]["alertChannel"]; |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | //Remove members who have roles but never authed |
| 124 | 124 | $guild = $discord->guilds->get('id', $id); |
| 125 | - foreach($guild->members as $member) { |
|
| 125 | + foreach ($guild->members as $member) { |
|
| 126 | 126 | $notifier = null; |
| 127 | 127 | $id = $member->id; |
| 128 | 128 | $username = $member->username; |
@@ -131,10 +131,10 @@ discard block |
||
| 131 | 131 | $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'"; |
| 132 | 132 | |
| 133 | 133 | $result = $conn->query($sql); |
| 134 | - if($result->num_rows == 0) { |
|
| 134 | + if ($result->num_rows == 0) { |
|
| 135 | 135 | foreach ($roles as $role) { |
| 136 | - if(!isset($role->name)){ |
|
| 137 | - if($id != $botID && !in_array($role->name, $exempt, true)){ |
|
| 136 | + if (!isset($role->name)) { |
|
| 137 | + if ($id != $botID && !in_array($role->name, $exempt, true)) { |
|
| 138 | 138 | $member->removeRole($role); |
| 139 | 139 | $guild->members->save($member); |
| 140 | 140 | // Send the info to the channel |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $url = "https://api.eveonline.com/eve/CharacterAffiliation.xml.aspx?ids=$charID"; |
| 171 | 171 | $xml = makeApiRequest($url); |
| 172 | 172 | // Stop the process if the api is throwing an error |
| 173 | - if (is_null($xml)){ |
|
| 173 | + if (is_null($xml)) { |
|
| 174 | 174 | $this->logger->addInfo("{$eveName} cannot be authed, API issues detected."); |
| 175 | 175 | return null; |
| 176 | 176 | } |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | "alertChannel" => 0, // if using periodic check put the channel you'd like the bot to log removing users in. (Recommended you don't use an active chat channel) |
| 134 | 134 | "nameEnforce" => "false", // put "true" or "false", if you'd like to make sure people's name match character names |
| 135 | 135 | "url" => "http://.....", // put a url here if using sso auth for ur sso page. |
| 136 | - "exempt" => array("","") // role names that are exempt from auth checks (wont be removed by the bot) |
|
| 136 | + "exempt" => array("", "") // role names that are exempt from auth checks (wont be removed by the bot) |
|
| 137 | 137 | ), |
| 138 | 138 | //Killmail posting |
| 139 | 139 | "getKillmails" => array( |
@@ -66,8 +66,8 @@ |
||
| 66 | 66 | $logger->pushHandler(new StreamHandler(__DIR__ . '/log/libraryError.log', Logger::DEBUG)); |
| 67 | 67 | $userAgent = "Mozilla/5.0 (en-us;)"; |
| 68 | 68 | try { |
| 69 | - $opts = array ( |
|
| 70 | - 'http' => array ( |
|
| 69 | + $opts = array( |
|
| 70 | + 'http' => array( |
|
| 71 | 71 | 'method' => "GET", |
| 72 | 72 | 'user_agent' => $userAgent, |
| 73 | 73 | ) |