@@ -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 |
@@ -122,7 +122,7 @@ |
||
| 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 | $id = $member->id; |
| 127 | 127 | $username = $member->username; |
| 128 | 128 | $roles = $member->roles; |
@@ -83,9 +83,9 @@ |
||
| 83 | 83 | $member = $guild->members->get("id", $userID);
|
| 84 | 84 | $roles = $member->roles; |
| 85 | 85 | foreach ($roles as $role) {
|
| 86 | - if(in_array($role->name, $adminRoles, true)){
|
|
| 86 | + if (in_array($role->name, $adminRoles, true)) {
|
|
| 87 | 87 | $update = updateBot($this->logger); |
| 88 | - if ($update == "1"){
|
|
| 88 | + if ($update == "1") {
|
|
| 89 | 89 | $msg = "Bot succesfully updated, restarting."; |
| 90 | 90 | $this->logger->addInfo("Bot succesfully updated, restarting.");
|
| 91 | 91 | $this->message->reply($msg); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | "trigger" => "!", // what trigger is used for commands |
| 32 | 32 | "guild" => 152677265635803136, // guildID |
| 33 | 33 | "token" => "", //enter the token for your app (https://discordapp.com/developers/applications/me) |
| 34 | - "adminRoles" => array("Admin",""),//enter the roles that you'd like to have access to admin commands |
|
| 34 | + "adminRoles" => array("Admin", ""), //enter the roles that you'd like to have access to admin commands |
|
| 35 | 35 | "silentMode" => "false"//set this to true if you want to disable all the chat commands |
| 36 | 36 | ); |
| 37 | 37 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $logger->addInfo("Updating Bot");
|
| 33 | 33 | putenv("COMPOSER_HOME=/usr/local/bin/composer");
|
| 34 | 34 | $output = shell_exec('sh ' . dirname(__FILE__) . '/update.sh');
|
| 35 | - if ($output == "1"){
|
|
| 35 | + if ($output == "1") {
|
|
| 36 | 36 | $logger->addInfo("Update Complete");
|
| 37 | 37 | return "1"; |
| 38 | 38 | } |