1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-02 20:13:13 +00:00

dev: added some logs in greet service

This commit is contained in:
Kwoth 2024-09-24 01:57:19 +00:00
parent 716e092fd0
commit b97c486b80

View file

@ -291,8 +291,9 @@ public class GreetService : INService, IReadyExecutor
await _sender.Response(user).Text(smartText).Sanitize(false).SendAsync();
}
catch
catch(Exception ex)
{
Log.Error(ex, "Error sending greet dm");
return false;
}
@ -335,9 +336,9 @@ public class GreetService : INService, IReadyExecutor
}
}
}
catch
catch(Exception ex)
{
// ignored
Log.Error(ex, "Error in GreetService.OnUserJoined. This should not happen. Please report it");
}
});
return Task.CompletedTask;