@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData['message']['channelID']; |
|
| 73 | + $channelID = (int) $msgData['message']['channelID']; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | function onMessage($msgData, $message) |
| 93 | 93 | { |
| 94 | - $channelID = (int)$msgData['message']['channelID']; |
|
| 94 | + $channelID = (int) $msgData['message']['channelID']; |
|
| 95 | 95 | |
| 96 | 96 | if (in_array($channelID, $this->excludeChannel, true)) |
| 97 | 97 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | */ |
| 73 | 73 | function onMessage($msgData, $message) |
| 74 | 74 | { |
| 75 | - $channelID = (int)$msgData['message']['channelID']; |
|
| 75 | + $channelID = (int) $msgData['message']['channelID']; |
|
| 76 | 76 | |
| 77 | 77 | if (in_array($channelID, $this->excludeChannel, true)) |
| 78 | 78 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData['message']['channelID']; |
|
| 73 | + $channelID = (int) $msgData['message']['channelID']; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | foreach ($roles as $role) {
|
| 88 | 88 | if (in_array($role->name, $adminRoles, true)) {
|
| 89 | 89 | $member = $guild->members->get('id', $botID);
|
| 90 | - $nick = (string)$data['messageString']; |
|
| 90 | + $nick = (string) $data['messageString']; |
|
| 91 | 91 | $member->setNickname($nick); |
| 92 | 92 | |
| 93 | 93 | $msg = "Bot nickname changed to **{$nick}** by {$msgData['message']['from']}";
|
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $roles = $member->roles; |
| 88 | 88 | foreach ($roles as $role) { |
| 89 | 89 | if (in_array($role->name, $adminRoles, true)) { |
| 90 | - $newGame = (string)$data['messageString']; |
|
| 90 | + $newGame = (string) $data['messageString']; |
|
| 91 | 91 | $game = $this->discord->factory(Game::class, [ |
| 92 | 92 | 'name' => $newGame, |
| 93 | 93 | ]); |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | $roles = $member->roles; |
| 87 | 87 | foreach ($roles as $role) { |
| 88 | 88 | if (in_array($role->name, $adminRoles, true)) { |
| 89 | - $logType = (string)$data['messageString']; |
|
| 89 | + $logType = (string) $data['messageString']; |
|
| 90 | 90 | if ($logType == 'log') { |
| 91 | 91 | $filePath = __DIR__ . '/../../../log/dramielLog.log'; |
| 92 | 92 | } elseif ($logType == 'error') { |