| @@ 53-68 (lines=16) @@ | ||
| 50 | * @param $discord |
|
| 51 | * @param $logger |
|
| 52 | */ |
|
| 53 | public function init($config, $discord, $logger) |
|
| 54 | { |
|
| 55 | $this->config = $config; |
|
| 56 | $this->discord = $discord; |
|
| 57 | $this->logger = $logger; |
|
| 58 | $this->toDiscordChannel = $config['plugins']['fleetUp']['channelID']; |
|
| 59 | $this->userID = $config['plugins']['fleetUp']['userID']; |
|
| 60 | $this->groupID = $config['plugins']['fleetUp']['groupID']; |
|
| 61 | $this->apiKey = $config['plugins']['fleetUp']['apiKey']; |
|
| 62 | $this->guild = $config['bot']['guild']; |
|
| 63 | $lastCheck = getPermCache('fleetUpPostLastChecked'); |
|
| 64 | if ($lastCheck === NULL) { |
|
| 65 | // Schedule it for right now if first run |
|
| 66 | setPermCache('fleetUpPostLastChecked', time() - 5); |
|
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * |
|
| @@ 49-64 (lines=16) @@ | ||
| 46 | * @param $discord |
|
| 47 | * @param $logger |
|
| 48 | */ |
|
| 49 | public function init($config, $discord, $logger) |
|
| 50 | { |
|
| 51 | $this->config = $config; |
|
| 52 | $this->discord = $discord; |
|
| 53 | $this->logger = $logger; |
|
| 54 | $this->guild = $config['bot']['guild']; |
|
| 55 | $this->toDiscordChannel = $config['plugins']['siloFull']['channelID']; |
|
| 56 | $this->keyID = $config['plugins']['siloFull']['keyID']; |
|
| 57 | $this->vCode = $config['plugins']['siloFull']['vCode']; |
|
| 58 | $this->towerRace = $config['plugins']['siloFull']['towerRace']; |
|
| 59 | $lastCheck = getPermCache("siloLastChecked{$this->keyID}"); |
|
| 60 | if ($lastCheck === NULL) { |
|
| 61 | // Schedule it for right now if first run |
|
| 62 | setPermCache("siloLastChecked{$this->keyID}", time() - 5); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * |
|