public void Process(XQEventArgs _e)
        {
            //
            var e = new GroupMsgEventArgs(_e);

            if (e.Message == "我醒了")
            {
                if (DateTime.Now.Hour < 8)
                {
                    e.SendMsg(XQCode.At(e.FromQQ) + "你醒啦!");
                }

                if (8 <= DateTime.Now.Hour && DateTime.Now.Hour <= 10)
                {
                    e.SendMsg(XQCode.At(e.FromQQ) + "快起床!");
                }
                if (DateTime.Now.Hour > 10)
                {
                    e.SendMsg(XQCode.At(e.FromQQ) + "懒虫!");
                }
            }
        }
Esempio n. 2
0
 private async ValueTask <EventResult <GroupMsgQuickOperation> > OnGroupMessage(GroupMsgEventArgs args, IOneBotApi api)
 {
     return(null);
 }