Skip to content

Commit

Permalink
Fix debug logging, Release v2.0.4
Browse files Browse the repository at this point in the history
- Sorry forgot it was servers main logger :/
- Backward fix from v2.1 (as v2.1 is targeted for PM4)
- closes #41
  • Loading branch information
JaxkDev committed Oct 2, 2021
1 parent 4e39bee commit 92b83ef
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 46 deletions.
85 changes: 44 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: DiscordBot
version: 2.0.3
version: 2.0.4
author: JaxkDev
main: JaxkDev\DiscordBot\Plugin\Main
description: Plugin to host a discord bot using DiscordPHP with a react\promise API !
Expand Down
5 changes: 2 additions & 3 deletions src/JaxkDev/DiscordBot/Bot/Handlers/DiscordEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,8 @@ public function onVoiceStateUpdate(DiscordVoiceStateUpdate $ds): void{

public function onPresenceUpdate(DiscordPresenceUpdate $presenceUpdate): void{
$clientStatus = [
/** @phpstan-ignore-next-line Undocumented property client_status */
"desktop" => $presenceUpdate->client_status->desktop??null, /** @phpstan-ignore-next-line */
"mobile" => $presenceUpdate->client_status->mobile??null, /** @phpstan-ignore-next-line */
"desktop" => $presenceUpdate->client_status->desktop??null,
"mobile" => $presenceUpdate->client_status->mobile??null,
"web" => $presenceUpdate->client_status->web??null
];
$activities = [];
Expand Down
2 changes: 1 addition & 1 deletion src/JaxkDev/DiscordBot/Communication/BotThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(AttachableThreadedLogger $logger, array $initialConf
}

public function run(){
$this->logger->setLogDebug(true);
//$this->logger->setLogDebug(true);
$this->logger->registerStatic();

//Check for conflicts between pocketmines vendor and mine.
Expand Down

0 comments on commit 92b83ef

Please sign in to comment.