示例#1
0
        void StartNew(Message m, int hour, int minute, string file, PyScriptOnce once)
        {
            PyScriptService ser = new PyScriptService(m.Client.Bot, hour, minute, file, once);
            int             id  = m.Client.Bot.SrvManager.RegisterNewService(ser);

            m.Reply("PyScript Service started with ID: " + id + ". This chat was registered to it.");
            ser.Register(m.Chat);
        }
示例#2
0
 public void Execute(Message m, int hour, int minute, string file, PyScriptOnce once)
 {
     StartNew(m, hour, minute, file, once);
 }
示例#3
0
 public void Execute(Message m, int seconds, string file, PyScriptOnce once)
 {
     StartNew(m, seconds, file, once);
 }