Пример #1
0
            protected override string exec(MessageEventArgs Msg, string param)
            {
                module.UseStatus = false;
                module.savePersistentData();

                bot.SetStatusmessageEvent(null);
                return("Status has been removed");
            }
Пример #2
0
            protected override string exec(MessageEventArgs Msg, string param)
            {
                module.status    = param;
                module.UseStatus = true;
                module.savePersistentData();
                bot.SetStatusmessageEvent(param);

                return("Status has been updated");
            }
Пример #3
0
 public void MaplistChange(IReadOnlyList <Map> maplist)
 {
     StatusPrefix = "[" + maplist.Count + "] ";
     userhandler.SetUsernameEventProcess(username);
     userhandler.SetStatusmessageEvent(StatusPrefix + status);
 }