@@ -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 |
@@ -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 | ); |
| 36 | 36 | |
| 37 | 37 | $config["database"] = array( |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | $plugins = array(); |
| 103 | 103 | foreach ($pluginDirs as $dir) { |
| 104 | 104 | foreach (glob($dir) as $plugin) { |
| 105 | - var_dump($plugin); |
|
| 106 | - var_dump($adminPlugins); |
|
| 105 | + var_dump($plugin); |
|
| 106 | + var_dump($adminPlugins); |
|
| 107 | 107 | // Only load the plugins we want to load, according to the config |
| 108 | 108 | if (!in_array(str_replace(".php", "", basename($plugin)), $config["enabledPlugins"]) && in_array(str_replace(".php", "", basename($plugin), $adminPlugins))) { |
| 109 | 109 | continue; |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | function updateBot($logger) |
| 31 | 31 | {
|
| 32 | - $logger->addInfo("Updating Bot");
|
|
| 33 | - putenv("COMPOSER_HOME=/usr/local/bin/composer");
|
|
| 32 | + $logger->addInfo("Updating Bot");
|
|
| 33 | + putenv("COMPOSER_HOME=/usr/local/bin/composer");
|
|
| 34 | 34 | $output = shell_exec('sh ' . dirname(__FILE__) . '/update.sh');
|
| 35 | - if ($output = "1"){
|
|
| 36 | - $logger->addInfo("Update Complete");
|
|
| 37 | - return "1"; |
|
| 38 | - } |
|
| 35 | + if ($output = "1"){
|
|
| 36 | + $logger->addInfo("Update Complete");
|
|
| 37 | + return "1"; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | 40 | } |