Fix exception when rate limit not defined
This commit is contained in:
parent
2e9036b26a
commit
d560ca5c94
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ namespace Noikoio.RegexBot.Feature.AutoRespond
|
|||
_filter = new FilterList(data);
|
||||
|
||||
// rate limiting
|
||||
string rlstr = data["ratelimit"].Value<string>();
|
||||
string rlstr = data["ratelimit"]?.Value<string>();
|
||||
if (string.IsNullOrWhiteSpace(rlstr))
|
||||
{
|
||||
_limit = new RateLimitCache(RateLimitCache.DefaultTimeout);
|
||||
|
|
Loading…
Reference in a new issue