@@ -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 |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | use Discord\Parts\Channel\Channel; |
| 27 | -use Discord\Parts\User\Client; |
|
| 28 | 27 | |
| 29 | 28 | /** |
| 30 | 29 | * Class fileAuthCheck |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | //Remove members who have roles but never authed |
| 119 | 119 | $guild = $this->discord->guilds->get('id', $id); |
| 120 | - foreach($guild->members as $member) { |
|
| 120 | + foreach ($guild->members as $member) { |
|
| 121 | 121 | $notifier = null; |
| 122 | 122 | $id = $member->id; |
| 123 | 123 | $username = $member->username; |
@@ -126,10 +126,10 @@ discard block |
||
| 126 | 126 | $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'"; |
| 127 | 127 | |
| 128 | 128 | $result = $conn->query($sql); |
| 129 | - if($result->num_rows == 0) { |
|
| 129 | + if ($result->num_rows == 0) { |
|
| 130 | 130 | foreach ($roles as $role) { |
| 131 | - if(!isset($role->name)){ |
|
| 132 | - if($id != $clientId){ |
|
| 131 | + if (!isset($role->name)) { |
|
| 132 | + if ($id != $clientId) { |
|
| 133 | 133 | $member->removeRole($role); |
| 134 | 134 | $member->save(); |
| 135 | 135 | // Send the info to the channel |