@@ -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 |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | //Remove members who have roles but never authed |
| 121 | 121 | $guild = $this->discord->guilds->get('id', $id); |
| 122 | - foreach($guild->members as $member) { |
|
| 122 | + foreach ($guild->members as $member) { |
|
| 123 | 123 | $notifier = null; |
| 124 | 124 | $id = $member->id; |
| 125 | 125 | $username = $member->username; |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'"; |
| 129 | 129 | |
| 130 | 130 | $result = $conn->query($sql); |
| 131 | - if($result->num_rows == 0) { |
|
| 131 | + if ($result->num_rows == 0) { |
|
| 132 | 132 | foreach ($roles as $role) { |
| 133 | - if(!isset($role->name)){ |
|
| 134 | - if($id != $botID){ |
|
| 133 | + if (!isset($role->name)) { |
|
| 134 | + if ($id != $botID) { |
|
| 135 | 135 | $member->removeRole($role); |
| 136 | 136 | $member->save(); |
| 137 | 137 | // Send the info to the channel |