Example #1
0
        string GetShortMapList()
        {
            if (MapModule.MapList.Maps.Count == 0)
            {
                return("The map list is empty.");
            }

            var mapList = MapModule
                          .MapList
                          .Maps
                          .Take(MapModule.Config.MaxMaps);

            var str = "Maps: " + string.Join(", ", mapList.Select(x => x.Name));

            if (MapModule.MapOverflow() != 0)
            {
                str += string.Format(" (and {0} more...)", MapModule.MapOverflow());
            }

            return(str);
        }
Example #2
0
 public MapList(MapModule mapModule)
 {
     this.mapModule = mapModule;
 }
Example #3
0
 public override void Initialize(Bot bot)
 {
     base.Initialize(bot);
     MapModule = bot.Modules.Get <MapModule>();
 }