kj415j45/kjBot

View on GitHub
middleWare/osu.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

global $CQ, $Event;

date_default_timezone_set('Asia/Shanghai');

if(preg_match('/see you next time/', $Event['message'])){
    try{
        $CQ->setGroupBan($Event['group_id'], $Event['user_id'], strtotime(((date('H')>=0&&date('H')<=7)?'':'next day').' 7 am')-time());
    }catch(\Exception $e){}
    
}

?>