Add exception to on call message event handler
This commit is contained in:
@@ -102,6 +102,7 @@ impl OnMessageHandler<State, Extras> for CallMessageHandler {
|
||||
|
||||
if UtcDateTime::from_unix_timestamp(event.author.id.timestamp() / 1000).unwrap()
|
||||
> UtcDateTime::now() - Duration::days(30)
|
||||
&& event.author.id.get() != rt.state.bot_owner_id
|
||||
{
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user